Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: difference between ABCDE and 'ABCDE'
Replies: 2   Last Post: Oct 9, 2013 10:41 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 10/9/13
difference between ABCDE and 'ABCDE'
Posted: Oct 9, 2013 10:01 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


can someone explain me the difference between this:
data.textdata(1) = 'SSSSS' and vincita = OOSZB?

I notice a difference in length:
ans = 5
ans= 1

I write this:

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!!!!


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?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.