How to assign value to variable

9 次查看(过去 30 天)
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

类别

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