Home > brede > brede_mat_ones.m

brede_mat_ones

PURPOSE ^

brede_mat_ones - 'Mat' structure with ones

SYNOPSIS ^

function Mout = brede_mat_ones(varargin)

DESCRIPTION ^

 brede_mat_ones       - 'Mat' structure with ones

       Mout = brede_mat_ones(siz)
       Mout = brede_mat_ones(Min)

       Input:    siz   Size of matrix, either one or two positive
                       integers
                 Min   'Mat' structure

       Property: Type  [ {matrix} | RowVector | ColumnVector ]

       Output:   Mout  'Mat' structure with ones

       Return a 'mat' structure where all the elements of the
       'matrix' field are ones.

       Example: 
         brede_mat_ones(3)

         brede_mat_ones([83 3]) 

         M = brede_mat_mat2mat(rand(83,3));
         brede_mat_ones(M)

         brede_mat_ones(M, 'Type', 'ColumnVector')

       See also BREDE, BREDE_MAT, BREDE_MAT_ORTHOSPACE, ONES.

 $Id: brede_mat_ones.m,v 1.2 2006/05/23 20:57:39 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