Resize

From Eigenvector Research Documentation Wiki
Revision as of 09:21, 2 September 2008 by imported>Jeremy (Importing text file)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Resizes arguments to same length.

Synopsis

[xout,varargout] = resize(x,varargin)

Description

Inputs (x) and (v) can be scalars, vectors, matrices, or multidimensional arrays. The function will attempt to resize all inputs to the largest size of each dimension for any given input as repeated multiple of itself. If input is a scalar, the function will return that scalar.

Examples

  (newx,newv1,newv2) = resize(x,v1,v2,v3);
  • original sizes are:
  • x - 2x2x2
  • v1 - 2x6
  • v2 - 4x1
  • v3 - 1x1
  • new sizes are:
  • newx - 4x6x2
  • newv1 - 4x6x2
  • newv2 - 4x6x2
  • newv3 - 1x1

See Also

repmat