Dataset reshape
Jump to navigation
Jump to search
Purpose
Change size of a DataSet object.
Synopsis
- rx = reshape(x,a,b,c,...)
- rx = reshape(x,[a b c])
Description
reshape(x,m,n) returns the M-by-N matrix whose elements are taken columnwise from x. An error results if x does not have M*N elements. reshape(x,m,n,p,...) or reshape(x,[m n p ...]) returns an N-D array with the same elements as X but reshaped to have the size M-by-N-by-P-by-... Note that M*N*P*... must be the same as PROD(SIZE(X)).
This function generally follows the I/O of the standard reshape command but some options may not be available here.