Ask
your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW)
45 Online
OpenStudy (anonymous):
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!
OpenStudy (anonymous):
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
ilovemybf:
two of my drawings i did today anyone got any ideas for wht i can draw next
2 hours ago
34 Replies
6 Medals
JaydenL:
Hey Guys I promise I will make another singing voice recorder, but I need y'all. Please go check out my YouTube channel.
1 hour ago
8 Replies
2 Medals
Wolf95:
Love is a trap, love hurts There is nothing good about it It makes you fall apart When you realize your truest friend is your truest enemy When you start to
6 hours ago
22 Replies
5 Medals
Subshilava:
The frequency of two alleles in a gene pool is 0.17 (A) and 0.83(a). Assume that the population is in Hardy-Weinberg equilibrium.
7 hours ago
2 Replies
0 Medals
toga:
how do you clean blood off your computer, couch, white T-shirt, and cat a who hat
10 hours ago
38 Replies
2 Medals
Subshilava:
5.5 m 3 m 17.2 m What is the surface area of the prism? 283.8m ^ 2 292.4m ^ 2 325.
11 hours ago
3 Replies
2 Medals
Wolf95:
This is an important question because my ex has been texting me saying he'll kill
10 hours ago
10 Replies
2 Medals