Home > brede > brede_mat_negate.m

brede_mat_negate

PURPOSE ^

brede_mat_negate - Negate element values in matrix

SYNOPSIS ^

function Mout = brede_mat_negate(Min, varargin)

DESCRIPTION ^

 brede_mat_negate     - Negate element values in matrix

       function Mout = brede_mat_negate(Min)

       Input:   Min    'Mat' structure or numerical matrix

       Output:  Mout   'Mat' structure  

       Change sign on all elements in the matrix.

       Example:
         M = brede_mat_negate(ones(2,3))
         M.matrix  % Should give a matrix: [-1 -1 -1; 1 1 1]

       See also BREDE, BREDE_MAT. BREDE_MAT_PRODUCT.

 $Id: brede_mat_negate.m,v 1.2 2009/10/20 12:50:35 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