Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 41 Online
OpenStudy (anonymous):

how can i assign n variables? in matlab? i want to put each row of a column of a matrix in a different variable but the matrix does not always has the same length so i try this way for i =1:n ai = matrix(i,1:n) end but it doesnt recognize the i as a number

OpenStudy (anonymous):

is that you mean you need a variable length of matrix depend on how you input? [m n] = size(matrix); for i = 1:m ai = matrix(m,:) end is that what you mean?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
SsTDOGRednek: How many x and y chromosomes do we have? I forget...
2 hours ago 5 Replies 2 Medals
SsTDOGRednek: What Element is I?
4 hours ago 3 Replies 1 Medal
SsTDOGRednek: What is the compound I?
4 hours ago 7 Replies 1 Medal
danielfootball123: HAPPY EASTER!!!!
2 hours ago 25 Replies 3 Medals
ShadowKid3: I drew Leon again (used suggestions from last art post) so Leon v2 :D
21 hours ago 4 Replies 0 Medals
Puck: for all you amazing people
4 hours ago 4 Replies 2 Medals
Breathless: update on drawing.
1 day ago 12 Replies 5 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!