Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
13 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
Countless7Echos:
I don't know just no sketch doodle day :p finished a video already so I'm pretty
Ferrari:
Depression Hi, it's me, Jordan (ferrari). It's supposed to be the Fourth of July but I feel kinda depressed and mad at myself for no reason.
Countless7Echos:
mmm I forgot to post but hey first time trying out hyperpop art :3 super fun TW:
RAVEN69:
The hole You can't fix the hole in my heart. It's permanent. It's been broken to many times and I love it every time.
48 minutes ago
9 Replies
2 Medals
2 hours ago
12 Replies
1 Medal
1 day ago
9 Replies
5 Medals
1 day ago
0 Replies
0 Medals