Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
39 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
danielfootball123:
I really want to get into coding, can anyone help (web dev/game dev)
jhaseker:
This poem is about my anxietyyy can y'all relate Dear anxiety, I see you Feel you
Lillys2account:
u201cOverthinkeru2019s Anthem" My mindu2019s a movie on replay, Every little word I said today.
jhaseker:
In relationship I thought I would find true love After all it had such A wonderfu
penguin:
people say its okay for them to do stuff but not when i do stuff so u mean it is
zanesafoodie:
This one's called thanks I guess (also I am SO sorry for not posting anything in
YouMyPlug:
Petition to make a subject for videogame clips or games in general. Trust
ZaraKatja:
Why was crowd action a common form of protest in colonial America?
8 hours ago
5 Replies
1 Medal
11 hours ago
12 Replies
2 Medals
1 day ago
6 Replies
1 Medal
1 day ago
5 Replies
0 Medals
2 days ago
0 Replies
0 Medals
1 day ago
8 Replies
2 Medals
3 days ago
4 Replies
0 Medals
3 days ago
3 Replies
0 Medals