How to say this in MATLAB language?

조회 수: 2 (최근 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 CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by