Bug SS-42
1 vote

num2str() cannot handle strings with spaces

Created by Martin Kraska on 3/23/2014 1:59 PM Last Updated by bakaka on 5/8/2026 8:50 AM
%
 (hrs)
Logged: 0   (hrs)

 Description

return value of num2str("a b") is undefined. Return value of num2str("ab") is ""ab""

    bakaka (Friday, May 8, 2026 8:50 AM) #

it's like a little time capsule of people who cared about a tiny num2str() quirk. Reminds me of when I get stuck on a tricky level in a physics game , where one small imbalance throws everything off, and you just need that community fix to move forward.

    smath (Thursday, April 28, 2016 4:44 PM) #

Fixed.

Thank you!

    Davide (Sunday, April 24, 2016 7:42 PM) #

Related issue: copy & paste num2str("a b") returns a glitch