1

Octave strcat ignores added spaces

view story
linux-howto

http://stackoverflow.com – Octave adds spaces with strcat In Octave I run these commands: strcat ("hel", " ", "lo") I get this result: ans = hello Instead of what I expected: ans = hel lo strcat to me sounds like "concatenate strings". A space is a valid character, so adding a space should be OK. Matlab has the same behaviour, so it's probably intended. I find it counter intuitive. Explain why this behaviour makes sense. Should it be changed? (HowTos)