How to say this in MATLAB language?

6 ビュー (過去 30 日間)
IBM watson
IBM watson 2018 年 12 月 7 日
コメント済み: IBM watson 2018 年 12 月 7 日
I want to say a plus b equals to 10
math exuation:
a+b=10
how write this in matlab?

採用された回答

madhan ravi
madhan ravi 2018 年 12 月 7 日
編集済み: madhan ravi 2018 年 12 月 7 日
Welcome to the club ;-) see syms requires symbolic math toolbox
syms a b
equation=a+b==10
  4 件のコメント
Image Analyst
Image Analyst 2018 年 12 月 7 日
But what values do you want ot use for a and b? 2 and 8? 1 and 9? 5.5 and 4.5?
IBM watson
IBM watson 2018 年 12 月 7 日
Matlab will calculate the best values for my fitness function.
Yes, I should and will read the documentation.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by