Error:Unexpected MATLAB expression.
古いコメントを表示
Part o f a program I am writing goes as folows:
if(y2(i)>y1(i))
ntra=ceil((y2(i)-y1(i))/h;
htra=(y2(i)-y1(i))/ntra;
y=[y1(i):htra:y2(i)];
x=xtab(i);
ytabtra=eval(f);
The definition of f beeing:
temp=input('veuillez encoder la fonction principale f(x,y):','s');
f= vectorize(temp);
I tested it with the input '3x+y'
When I programed this yesterday, everything worked, but when I tried again today I get:
??? Error: Unexpected MATLAB expression.
Error in ==> principal_1 at 45
ytabtra=eval(f);
Could anybody help me please?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Platform and License についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!