Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
32 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
gelphielvr:
Where are the different types of valance electrons located on the periodic table?
Twaylor:
It's my birthday :D 16 Years - What have I done? No idea how to start this so Iu2019ll just start by typing how I think.
breiadabrattzz:
Which from the following underlined text is the most effective way to introduce t
toga:
is it possble to skip a grade in 11th if even the ap classes you have are easy an
gelphielvr:
What did all 3 Prez have in common (in relation to the great depression / 1920s)
8 hours ago
3 Replies
3 Medals
48 minutes ago
99 Replies
6 Medals
1 day ago
32 Replies
1 Medal
1 day ago
1 Reply
0 Medals
1 day ago
2 Replies
0 Medals