| 5 | 1/1 | 返回列表 |
| 查看: 574 | 回復: 4 | ||
zhycfb2009新蟲 (初入文壇)
|
[求助]
請問這段Matlab程序中哪里有錯?
|
|
a=792; b=9.8; c=0.02255; h=0.0283; dydt=[ y(2); (a*b*(h+y(1))/c-y(2)/(t*(1+y(2)^2)^(1/2)))*(1+y(2)^2)^(3/2); ]; [z y]=ode45(@equl,[0.00000001,0.00015],[0,0]); plot(t,y(:,1),'-'); z=vpa(z,4); e=y(:,1); Matlab里面顯示“??? Undefined function or method 'y' for input arguments of type 'double'.”請問怎么修改才能得到預想的X,Y點集?謝謝! |
木蟲 (小有名氣)
木蟲 (初入文壇)
新蟲 (初入文壇)
|
噢,對,還沒有定義函數(shù),謝謝!function dydt=equl(t,y) 但還有一個問題。我定義函數(shù)后,把abch的數(shù)據(jù)進行了些修改。 發(fā)現(xiàn)還是有些問題。 如: function dydt=equl(t,y) a=5510; b=9.8; c=1.419; h=0.02149; dydt=[ y(2); (a*b*(h+y(1))/c-y(2)/(t*(1+y(2)^2)^(1/2)))*(1+y(2)^2)^(3/2); ]; [z y]=ode45(@equl,[0.00000001,0.0025],[0,0]); 電腦顯示“Warning: Failure at t=2.048343e-004. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (4.336809e-019) at time t. ” 這又是為什么呢?或者怎么修改才好? |
木蟲 (初入文壇)
| 5 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 0856材料專碩353求調劑 +3 | NIFFFfff 2026-03-20 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 306求調劑 +4 | chuanzhu川燭 2026-03-18 | 4/200 |
|
|
[考研] 265求調劑 +3 | Jack?k?y 2026-03-17 | 3/150 |
|
|
[考研] 一志愿 西北大學 ,070300化學學碩,總分287,雙非一本,求調劑。 +3 | 晨昏線與星海 2026-03-18 | 3/150 |
|
|
[考研] 一志愿南昌大學,327分,材料與化工085600 +9 | Ncdx123456 2026-03-19 | 9/450 |
|
|
[考研] 323求調劑 +3 | 洼小桶 2026-03-18 | 3/150 |
|
|
[考研]
|
然11 2026-03-19 | 4/200 |
|
|
[考研] 材料學碩297已過四六級求調劑推薦 +11 | adaie 2026-03-19 | 11/550 |
|
|
[考研] 一志愿 南京航空航天大學大學 ,080500材料科學與工程學碩 +5 | @taotao 2026-03-20 | 5/250 |
|
|
[考研] 一志愿吉林大學材料學碩321求調劑 +11 | Ymlll 2026-03-18 | 15/750 |
|
|
[考研] 286求調劑 +6 | lemonzzn 2026-03-16 | 10/500 |
|
|
[考研] 材料,紡織,生物(0856、0710),化學招生啦 +3 | Eember. 2026-03-17 | 9/450 |
|
|
[碩博家園] 湖北工業(yè)大學 生命科學與健康學院-課題組招收2026級食品/生物方向碩士 +3 | 1喜春8 2026-03-17 | 5/250 |
|
|
[考研] 290求調劑 +3 | p asserby. 2026-03-15 | 4/200 |
|
|
[考研]
|
zhouzhen654 2026-03-16 | 3/150 |
|
|
[考研] 333求調劑 +3 | 文思客 2026-03-16 | 7/350 |
|
|
[考研] 一志愿211 0703方向310分求調劑 +3 | 努力奮斗112 2026-03-15 | 3/150 |
|
|
[考研] 0703化學調劑 290分有科研經(jīng)歷,論文在投 +7 | 膩膩gk 2026-03-14 | 7/350 |
|
|
[考研] 288求調劑 +4 | 奇點0314 2026-03-14 | 4/200 |
|
|
[考研] 本科南京大學一志愿川大藥學327 +3 | 麥田耕者 2026-03-14 | 3/150 |
|