Home > ISET > utility > upperQuad2FullMatrix.m

upperQuad2FullMatrix

PURPOSE ^

Duplicates the upper right quad of a matrix in the other quads

SYNOPSIS ^

function fullmatrix = upperQuad2FullMatrix(upperRight,nRows,nCols)

DESCRIPTION ^

 Duplicates the upper right quad of a matrix in the other quads

   fullmatrix = upperQuad2FullMatrix(upperRight,nRows,nCols)

   For a full matrix (nRows x nCols), suppose upperRight is the upper
   right quadrant of a matrix.   

   This routine duplicates the upper right quad in the other quads,
   mirroring the data. 

   If there is an odd number of output cols, the middle data are always
   attached to the quadrants on the right side of the data.   If there is
   an odd number of rows, the middle data are always attached to the upper
   quadrants. 

Example:
   upperRight = [1,2,3;4,5,6;7,8,9];
   nRows = 5;
   nCols = 6;
   fullmatrix = upperQuad2FullMatrix(upperRight,nRows,nCols)

 Copyright ImagEval Consultants, LLC, 2005.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003