Hello 

I've got a problem with subs command in Matlab.

I have for example this part of code:

--------------------

U0=[50 50 0 0 0 0];

c=sym('c',[1,7]);

u=sym('u',[1,6]);

for i=1:6

u(i)=U0(i)*(1-c(i)/(4+c(i)))*(10/(10+c(7)));

end

cp=zeros(1,7);

r=0;

d=0.1;

U=zeros(1,6);

while r

More Hossein Shayan's questions See All
Similar questions and discussions