-3

I need help. I have the variables (matrix) zco, mgo, dco with 10x10 values. So, I have one variable tt={'zco','mgo','dco'}. I want to do the loop:

for i=1:3
plot (tt{i})
hold on
end

I want to plot the variables zco,mgo,dco from tt{i}.

Thanks for your help.

IGOR
  • 61
  • 1
  • 6

1 Answers1

0

Remove the single quotes in the cell array declaration, then run your code again.

rayryeng
  • 102,964
  • 22
  • 184
  • 193