How to assign value to variable
40 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mary Johnson
el 9 de Oct. de 2020
Comentada: Mary Johnson
el 9 de Oct. de 2020
My equation is Y+5 = 10, how can i assign value to Y because i keep getting this error.
0 comentarios
Respuesta aceptada
Ameer Hamza
el 9 de Oct. de 2020
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
Más respuestas (1)
madhan ravi
el 9 de Oct. de 2020
syms Y
equation = Y + 5 == 10
1 comentario
madhan ravi
el 9 de Oct. de 2020
doc syms
I suggest you to do MATLAB Onramp course.
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!