Home > analyzePRF > utilities > posrect.m

posrect

PURPOSE ^

function m = posrect(m)

SYNOPSIS ^

function m = posrect(m)

DESCRIPTION ^

 function m = posrect(m)

 <m> is a matrix

 positively-rectify <m>.

 example:
 isequal(posrect([2 3 -4]),[2 3 0])

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function m = posrect(m)
0002 
0003 % function m = posrect(m)
0004 %
0005 % <m> is a matrix
0006 %
0007 % positively-rectify <m>.
0008 %
0009 % example:
0010 % isequal(posrect([2 3 -4]),[2 3 0])
0011 
0012 m(m<0) = 0;

Generated on Wed 18-Jun-2014 21:47:41 by m2html © 2005