Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.
|
|
|
difference between ABCDE and 'ABCDE'
Posted:
Oct 9, 2013 10:01 AM
|
|
Hi,
can someone explain me the difference between this: data.textdata(1) = 'SSSSS' and vincita = OOSZB?
I notice a difference in length: >>length(vincita) ans = 5 >>length(data.textdata(1)) ans= 1
I write this: zreb=ones(simulation_length,1); vincita=ones(simulation_length,1);
for i= 1:simulation_length k1= round((length(r1)-a).*rand(1,1)+a); k2= round((length(r2)-a).*rand(1,1)+a); k3= round((length(r3)-a).*rand(1,1)+a); k4= round((length(r4)-a).*rand(1,1)+a); k5= round((length(r5)-a).*rand(1,1)+a);
combination=[k1 k2 k3 k4 k5]; vincita=[r1(k1) r2(k2) r3(k3) r4(k4) r5(k5)];
for i=1:100 if vincita=data.textdata(i,1) % PROBLEM!!!! zreb(i)=f_final(i,8) end end
end
a prog gives me this error: The expression to the left of the equals sign is not a valid target for an assignment.
Can someone have a solution? Which command i have to use to change length?
|
|
|
|