how to fill a matrix with different size vectors
Show older comments
I have a for cycle. each time the output is of different lenght.
I would like to put each output in the rows of a unique matrix and in the same time to save the vectors with consecutive names, like output1, output2, outpu3....
for i=1:4:size(index,2)
step=degree(index(i):index(i+3))'
end
1 Comment
Don't name a variable step and degree because there are inbuilt MATLAB functions.
help step
help degree
Accepted Answer
More Answers (0)
Categories
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!