Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function C = rows2cell( A )
- %% rows2cell( A )
- %
- % Inputs
- % A - Matrix to split into row vectors stored as cells
- %
- % Outputs
- % C - Cell with each element a sequential row of A
- %% Use mat2cell to perform conversion with appropriate dimensions
- C = mat2cell( A, ones(1,size(A,1)), size(A,2) );
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement