Dataset reshape: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
imported>Scott
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
===Description===
===Description===


<tt>reshape(x,m,n)</tt> returns the M-by-N matrix whose elements are taken
<tt>reshape(x,m,n)</tt> returns the M-by-N matrix whose elements are taken columnwise from <tt>x</tt>.  An error results if <tt>x</tt> does not have M*N elements.
columnwise from <tt>x</tt>.  An error results if <tt>x</tt> does not have M*N elements.


<tt>
<tt>
reshape(x,m,n,p,...)</tt> or <tt>reshape(x,[m n p ...])</tt> returns an N-D array with
reshape(x,m,n,p,...)</tt> or <tt>reshape(x,[m n p ...])</tt> returns an N-D array with the same elements as <tt>x</tt> 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)).
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
This function generally follows the I/O of the standard reshape command but some options may not be available here.
but some options may not be available here.
 
===See Also===
 
[[baselinew]], [[deresolv]]

Latest revision as of 19:20, 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.