Dataset reshape: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
No edit summary
imported>Scott
No edit summary
Line 1: Line 1:
__TOC__
===Purpose===
===Purpose===



Revision as of 19:17, 17 November 2008

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.

See Also

baselinew, deresolv