matArr: Matrix to Array Transformation.

Description Usage Arguments Value Examples

Description

This function creates a 4D/3D image array from a 2D matrix

Usage

1
matArr(mat,dim)

Arguments

mat

input must be a 2d matrix

dim

dimensions of array

Value

returns an array of dimension dim

Examples

1
2
3
mat<-matrix(nrow=50,ncol=30*30*15)  
arr<-matArr(mat,dim=c(30,30,15,50))
dim(arr)

FIACH documentation built on May 1, 2019, 8:02 p.m.

Related to matArr in FIACH...