为什麽不应为matlab的表达式?。
古いコメントを表示
f=input('f(v)=');
n=input('n=');
v0=input('v0=');
f1=diff(f);
for i=1:n
v=v0;
f(v0)=eval(f);
f1(v0)=eval(f1);
v0=v0-f(v0)/f1(v0);
end
结果为:
f(v)='37382-(-0.08v-259.08*log(1-0.08v/259.08))-91.4'
n=6
v0=11
错误使用 ff2 (line 7)
错误: 不应为 MATLAB 表达式。
使用的是64位的R2014a,系统win7.

採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB 快速入门 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!