Home > brede > brede_mat_divide.m

brede_mat_divide

PURPOSE ^

brede_mat_divide - Element-wise divide

SYNOPSIS ^

function Mout = brede_mat_divide(M1, M2, varargin)

DESCRIPTION ^

 brede_mat_divide     - Element-wise divide

       Mout = brede_mat_divide(M1, M2)

       Input:  M1    First matrix
               M2    Second matrix

       Output: Mout  

       Element-wise division between two matrices. Any of the
       matrices might be a vector or a scalar. 

       If the two first input arugments is matrices this operation is
       performed: 

            Mout.matrix = M1.matrix ./ M2.matrix

       Example: 
         brede_mat_divide(eye(2), 2)

         getfield(brede_mat_divide(eye(5), 1:5), 'matrix')

         getfield(brede_mat_divide(eye(5), rand(5)), 'matrix')

       See also BREDE, BREDE_MAT, BREDE_MAT_ADD,
                BREDE_MAT_ELEMPRODUCT, BREDE_MAT_MINUS,
                BREDE_MAT_PRODUCT.

 $Id: brede_mat_divide.m,v 1.3 2008/09/29 10:25:11 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