Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
14 Online
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
Still Need Help?
Join the QuestionCove community and study together with friends!
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!
Join our real-time social learning platform and learn together with your friends!
Latest Questions
Twaylor:
are police chases more dangerous to civilians than just letting the people in the
notmeta:
Imagine you are a toddler. What are your five biggest struggles or concerns in li
driftking80:
So I have been writing a story, and I don't know what people think about it it would be very nice if u read it.
EdwinJsHispanic:
As kind as a Butterfly, as cute as a puppy. And everything good. But They cant be mine for some reason I cant explain.
3 hours ago
3 Replies
2 Medals
5 hours ago
19 Replies
1 Medal
6 hours ago
2 Replies
0 Medals
6 hours ago
5 Replies
2 Medals