Code covered by the BSD License
09 Oct 2008
17 Dec 2012)
Enhanced disp that can take any number of arguments
Watch this File
Wish disp took more than one argument? Tired of using fprintf to print to the console? Try:
Dispa('the brightness is', var, 'cd/m2');
I guess it depends on how much you like printf strings. I find them easy to write, but error prone to edit after the fact.
Don't see why I should be tired of:
>> fprintf('the brightness is %.3f cd/m2 \n',32.098)
the brightness is 32.098 cd/m2
Improved comments, supports string concatenation.
now supports \t and \n style formatting, like printf (in fact, it uses fprintf to output text).
V3.1: This revision has better help text.