File Exchange

image thumbnail

DispA(ll)

version 1.4 (1.31 KB) by

Enhanced disp that can take any number of arguments

0 Downloads

Updated

View License

Wish disp took more than one argument? Tired of using fprintf to print to the console? Try:

Dispa('the brightness is', var, 'cd/m2');

Comments and Ratings (2)

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.

Oleg Komarov

Oleg Komarov (view profile)

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

Updates

1.4

V3.1: This revision has better help text.

1.3

now supports \t and \n style formatting, like printf (in fact, it uses fprintf to output text).

1.2

Updated description.

1.1

Improved comments, supports string concatenation.

MATLAB Release
MATLAB 7.3 (R2006b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video