Home > matlab > acado > functions > stringIntDouble.m

stringIntDouble

PURPOSE ^

SYNOPSIS ^

function r = stringIntDouble(val)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function r = stringIntDouble(val)
0002 
0003 
0004     if (isa(val,'numeric'))
0005         if (val == round(val))
0006             r = sprintf('%d', val);
0007         else
0008             r = sprintf('%E', val);  
0009         end
0010     else
0011         r = val;
0012     end
0013 
0014 
0015 end

www.acadotoolkit.org/matlab
Generated on Tue 01-Jun-2010 20:14:12 by m2html © 2005