フィルターのクリア

Why is this not working? And how to fix?

1 回表示 (過去 30 日間)
IBM watson
IBM watson 2018 年 12 月 20 日
コメント済み: madhan ravi 2018 年 12 月 20 日
When i run this code, I get an error message about x1.
syms x1 x2 c1 c2 c3
eq1= c1-c3==0;
eq2= c2-c3==0;
eq3= c1+c2+c3==1;
results= solve(eq1, eq2, eq3);
c1v= double(results.c1)
c2v= double(results.c2)
c3v= double(results.c3)
min=((1/c1v)^c1v)*((1/c2v)^c2v)*((1/c3v)^c3v)
eq4= x1/x2==1;
eq5= x1*(x2^2)==1;
results2= solve(eq4, eq5);
x1v= double(results.x1)
x2v= double(results.x2)

採用された回答

madhan ravi
madhan ravi 2018 年 12 月 20 日
編集済み: madhan ravi 2018 年 12 月 20 日
x1v= double(results2.x1)
^--2 missed
x2v= double(results2.x2)
^--2 missed
  2 件のコメント
IBM watson
IBM watson 2018 年 12 月 20 日
:( Wow sorry for this.
Thanks!!
madhan ravi
madhan ravi 2018 年 12 月 20 日
No problem .
Anytime :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by