Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 13 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
kaelynw: art igg
48 minutes ago 8 Replies 1 Medal
XShawtyX: Art
15 hours ago 6 Replies 0 Medals
Nina001: teach me how to draw or just tell me the basics
18 hours ago 2 Replies 1 Medal
XShawtyX: We doing another drawing gimme ideas to add to this
19 hours ago 9 Replies 1 Medal
RAVEN69: What is x 3+y 3+z 3=k
23 hours ago 20 Replies 1 Medal
cinna: Who is good with photo editing? Dm me pls
1 day ago 2 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!