Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 14 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
Cielo: Not a question but Iu2019m bored Sauce ud83dudc94
1 hour ago 1 Reply 0 Medals
TiredGhostboy: help
1 hour ago 2 Replies 0 Medals
TiredGhostboy: dose anyone understand
2 hours ago 0 Replies 0 Medals
MELLYWRLD: is it wrong if i believe in a lil of everything
5 hours ago 10 Replies 1 Medal
MELLYWRLD: I Kinda New...anyone wanna explain what this sites about
5 hours ago 13 Replies 1 Medal
MELLYWRLD: anyone like rap music?
23 hours ago 0 Replies 0 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!