Home > classes > @unit > plus.m

plus

PURPOSE ^

SYNOPSIS ^

function v = plus(v1,v2)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 
0002 function v = plus(v1,v2)
0003   
0004   if ~strcmp(char(v1), char(v2))
0005     error('### Can''t add different units');
0006   end
0007   
0008   v = v1;
0009   
0010 end

Generated on Mon 08-Sep-2008 13:18:47 by m2html © 2003