Prev: Problem Redefined
Next: mxCreateDoubleMatrix function
From: Frédéric Bergeron on 29 Jul 2010 23:54 "Claire " <Panther006(a)sbcglobal.net> wrote in message <i29mg9$ato$1(a)fred.mathworks.com>... [...] Also I would like for the integers to have three significant figures after the decimal place is their a way for me to do that in matlab or in the report? I've tried format in matlab but am unsucessful at getting the vlaue exactly the way I want it to look. > > Thanks for the help, Hey, for your number formatting you can maybe transform your integers into strings. For example: a=4365; fprintf('%.3f\n',a); You can also use sprintf to save this string into a variable... Fred
|
Pages: 1 Prev: Problem Redefined Next: mxCreateDoubleMatrix function |