how to add condition on fsolve
1 回表示 (過去 30 日間)
古いコメントを表示
clc
options=optimset('Display','iter');
x0 = [-5;-5;-5;-5;-5;-5];
options = optimset('Display','iter');
[x,fval] = fsolve(@myfun,x0,options);
x,fval
how can i this conditon for in f solvef ( 0<x1<x2<x3<x4<x5<x6<1.5708)
please help me with this code
0 件のコメント
回答 (1 件)
Walter Roberson
2020 年 1 月 22 日
You cannot add any such condition for fsolve().
Just solve normally and then sort the output.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!