Error when using variable in axis
2 ビュー (過去 30 日間)
古いコメントを表示
I've:
syms w we B U
A = (w*U)/(sqrt((-w^2+we)^2+(B*w)^2));
syms R L C
Aw = subs(A,{B,we},{R/L,1/(L*C)});
fplot(subs(Aw,{U,R,L,C},{1,1,1,1}))
Amax = subs(Aw,{U,R,L,C,w},{1,1,1,1,1/sqrt(1*1)});
Actually that code above is not that of importance. The real problem occurs, when
axis([0 10 0 Amax])
is set. I can't really grasp why this gives an error. Amax just equals 1.
axis([0 10 0 1])
works nonetheless. Must be caused by subs probably
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Oceanography and Hydrology についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!