Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
41 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
chatAI:
Difference between "Too" "To" and "two" Too means also | Me too, You too, can I come too To Means somewhere or a place | Can we go to the place Two means th
Lillys2account:
(Verse 1) I was lost in the silence, drifting away Shadows in my mind, stealing light from the day Then you pulled me closer, right through the storm Now I
Lillys2account:
ChatGPT Log in You said: Can you remix this song "you are the reason" by Calum Scott ChatGPT said: Sure, I can help remix "You Are the Reason" by Calum Scot
ShadowKid3:
I drew Leon again (used suggestions from last art post) so Leon v2 :D
32 minutes ago
1 Reply
0 Medals
3 hours ago
6 Replies
2 Medals
5 hours ago
0 Replies
0 Medals
21 hours ago
4 Replies
0 Medals