Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
42 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
EdwinJsHispanic:
( to that person who hurt me bad) I hate you so much I cannot even explain it. You had that trust that I gave you and just threw it on the ground like I did
OsKar:
What is St.Patrick's day even supposed to be? What's its purpose? And how do peop
EdwinJsHispanic:
people say friends are forever, especially best friends. but in some cases. that isnt true.
Puffer:
How do you turn off the light on you Chromebook cam its on and I'm not even using
zanesafoodie:
"broken sticks and chipped stones I lost you on my way home not even days later I
MaxTon:
ud83dudcda Why does the English language have silent letters in words like u201ck
EdwinJsHispanic:
( two things i wrote) Life is hard. you have to take care of yourself because if you dont who will.
6 minutes ago
1 Reply
0 Medals
2 hours ago
2 Replies
2 Medals
20 hours ago
4 Replies
0 Medals
1 day ago
5 Replies
1 Medal
1 day ago
0 Replies
0 Medals
1 day ago
3 Replies
1 Medal
1 day ago
1 Reply
1 Medal