Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: strcat including whitespace
Replies: 1   Last Post: Dec 23, 2013 6:28 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 6
Registered: 12/23/13
Re: strcat including whitespace
Posted: Dec 23, 2013 6:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Just for the completion:

strcat(a, {' '}, b)

adds space.

"Paul Gabbott" <paul@remove.gabbottonline.freeserve.co.uk> wrote in message <ab8hch$6cg$1@sun-cc204.lut.ac.uk>...
> If I use strcat on two string variables:
> a= 'var 1 ';
> b= 'var 2 ';
> I get the result:
> 'var 1var 2'
> Is there any way to concatenate 2 strings together and keep the white space
> so that the ouput is formatted better?
> e.g.
> Name Value
> var 1 10
> var 2 11
> etc etc
> Thanks,
> Paul Gabbott

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.