How to assign value to variable

조회 수: 9 (최근 30일)
Mary Johnson
Mary Johnson 2020년 10월 9일
댓글: Mary Johnson 2020년 10월 9일
My equation is Y+5 = 10, how can i assign value to Y because i keep getting this error.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 10월 9일
You cannot assign value to variable like this. The correct syntax is
y = 10 - 5;
Only variable name can be on left side. I suggest taking this free course to understand the basics of MATLAB: https://www.mathworks.com/learn/tutorials/matlab-onramp.html

추가 답변 (1개)

madhan ravi
madhan ravi 2020년 10월 9일
syms Y
equation = Y + 5 == 10
  댓글 수: 1
madhan ravi
madhan ravi 2020년 10월 9일
doc syms
I suggest you to do MATLAB Onramp course.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by