cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

reshape anything! (well, reshape some things)

StuartBruff
23-Emerald III

reshape anything! (well, reshape some things)

Attached is a variant of a reshape function that will reshape a vector, matrix or nested array in to a vector, matrix or (regularly structured) nested array depending upon the value of a shape vector.

Usage is reshape(A,n) (n-vector), reshape(A,[n]) (n-vector), reshape(A,[m,n]) (mxn matrix), reshape(A,[k,l,m,n] (mxn matrix of kxl matrices)

Stuart

0 REPLIES 0
Announcements

Top Tags