Grocer Function
NAME
reshape_gauss - mimics gauss function reshape
CALLING SEQUENCE
[B]=reshape_gauss(A,m,n)
PARAMETERS
Input
-
matin = a (pxq) matrix
-
n = # of rows of the destination matrix
-
m = # of cols of the destination matrix
Output
-
matout = the (nxm) destinaion matrix
DESCRIPTION
Function that mimics gauss function reshape_gauss, that replicates and tiles an array.
Note that:
1) function reshape exists in grocer, but it mimics troll, and not gauss, function reshape, that is performs the transformation of a vector into a ts
2) is equivalent to scilab function matrix only when the destination matrix has the same number of elements that the original one
EXAMPLE
A = 1:4;B=reshape_gauss(A,3,5)
Example gives the matrix:
B =
! 1. 2. 3. 4. 1. !
! 2. 3. 4. 1. 2. !
! 3. 4. 1. 2. 3. !
AUTHOR
Eric Dubois 2004