Home > brede > brede_mat_mat2mat.m

brede_mat_mat2mat

PURPOSE ^

brede_mat_mat2mat - Convert or clean matrix

SYNOPSIS ^

function Mout = brede_mat_mat2mat(Min, varargin)

DESCRIPTION ^

 brede_mat_mat2mat    - Convert or clean matrix

       Mout = brede_mat_mat2mat(Min)

       Input:  Min   'Mat' structure or numerical matrix

       Output: Mout  'Mat' structure

       Convert or 'clean' matrix or 'mat' structure. The 'matrix',
       'description' and 'type' fields are set.

       Numerical matrices larger than 2 cannot be handled. Logical
       matrices are converted to numerical matrices. An empty input is
       converted to a 'mat' structure with the 'matrix' field set to an
       empty matrix.

       The function will examine a numerical input matrix and set the
       description field according to the types of values in the input
       matrix. 

       Example: 
         % Convert an numeric matrix to the 'mat' structure 
         % of Brede   
         M = brede_mat_mat2mat(hadamard(12))

         % Once again now with the 'mat' structure as input
         brede_mat_mat2mat(M)
 
       See also BREDE, BREDE_MAT, BREDE_UI_MAT.

 $Id: brede_mat_mat2mat.m,v 1.5 2007/11/05 11:58:47 fn Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005