From: blup_00 on
Can I use this in fprintf or only in display? If it can, please show me example.
From: Steven Lord on

"blup_00" <borisziv(a)gmail.com> wrote in message
news:1490413659.63444.1272897114311.JavaMail.root(a)gallium.mathforum.org...
> Can I use this in fprintf or only in display? If it can, please show me
> example.
>

Sure, why wouldn't you be able to use it in FPRINTF? BLANKS just returns a
string that's n characters long and contains nothing but spaces -- you can
use it just like any other string.

fprintf('20 spaces:%s:\n', blanks(20))

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: us on
blup_00 <borisziv(a)gmail.com> wrote in message <1490413659.63444.1272897114311.JavaMail.root(a)gallium.mathforum.org>...
> Can I use this in fprintf or only in display? If it can, please show me example.

a hint:
- yes, BLANKS simply produces a CHAR string of spaces...

us