MATLAB: How to assign value to variable MATLAB My equation is Y+5 = 10, how can i assign value to Y because i keep getting this error. Best Answer You cannot assign value to variable like this. The correct syntax isy = 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 Related SolutionsMATLAB: Assigning probability if rand < probability A1 = A2;end MATLAB: Assign Multiple Variables It is not possible in one statement. It is possible in two statements, which you could combine on one line.t = num2cell([1,2,3,4]);[a,b,c,d] = deal(t{:}); Related QuestionHow to plot e^(-2n)Assign a vector
Best Answer