From: us on 15 May 2010 06:40 "pier " > i tried also function RESHAPE but as output obtained only 1 matrix even if customized well, yes... did your really try to get your hands dirty... m=ceil(5*rand(12,52)); % <- your ori mat... mr=reshape(m,[12,4,13]); % <- 13 submats of size 12x4 each... % eg, let's access submat #12 sm=mr(:,:,12); % once you tot this far, however, you have to carefully look at it and % see whether the packing order is correct... % you may have to look at PERMUTE... us
From: pier on 15 May 2010 06:58 Many thx for the example.... now i undestand!!!!! :D thx
From: pier on 16 May 2010 06:04 hi another little question..... i understand the use of reshape but now i have another matrix 192x13 using reshape(B=reshape(A,[12,13,16]) i want to obtaine 16 matrix 12x13 but i realize that with this reshape matrix B will be composed yes 12 x13 but instead taking the first 12 rows,the second 12 rows etc...it will take the colomuns!!!!!!!!!!!! can somebody tell me what can i do?please
From: us on 16 May 2010 06:15 "pier " <bombociccio1(a)libero.it> wrote in message <hslunv$s6m$1(a)fred.mathworks.com>... > Many thx for the example.... > now i undestand!!!!! > :D > thx welll... in my last replay there was a significant little addition at the very end: ....% you may have to look at PERMUTE... did you(?)... us
From: pier on 16 May 2010 06:41 i haven't notice :P for the moment i do this: B=reshape(A',[12,13,16]) the when i recall submat (B(:,:,1))' having the right size of rows and column using Permute is better than this??)
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: Fitting a surface Next: export data sheet with dependecies, comments, file names and paths |