Converting expression to matlab function in acceptable format
古いコメントを表示
f1 = 2x^2+3y; f2 =y^2+6x;
g1=matlabFunction(f1); g2 = matlabFunction(f2);
Here g1 =@(x,y) 2x^2+3y
But, I want g1 =@(x) 2*x(1)^2+3*x(2)
How to convert in the required format?
回答 (1 件)
Alan Weiss
2016 年 2 月 17 日
1 投票
1 件のコメント
Mithun mondal
2016 年 2 月 18 日
編集済み: Mithun mondal
2016 年 2 月 18 日
カテゴリ
ヘルプ センター および File Exchange で Systems of Nonlinear Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!