From: Paul on 23 Apr 2010 11:50 Did you find out how? T. "Shar " <sharteel(a)abv.bg> wrote in message <hcnbgq$jld$1(a)fred.mathworks.com>... > Hello, > I am still new to Matlab, and not yet used to vectorization. I need to perform the task without for loops, if possible, because I have too much data. > > What I need: > Extract all sub-matrices out of a matrix. I only want the rows. So, in a 5 row matrix [1;2;3;4;5] I should get: > 5 submatrices, size 1 row > 4 submatrices, size 2 consecutive rows: 1:2, 2:2, etc, till 4:5. > ... > 1 submatrix with all the rows. > > Is there an efficient way to do this? > > Thank you in advance, > S. >
|
Pages: 1 Prev: compiler Next: create and parse mdl file programatically |