Matlab strcat function troubles with spaces
问题 I'm trying to accomplish this: strcat('red ', 'yellow ', 'white ') I expected to see "red yellow white", however, I see "redyellowwhite" on the command output. What needs to be done to ensure the spaces are concatenated properly? Thanks in advance. 回答1: From the matlab help page for strcat: "strcat ignores trailing ASCII white space characters and omits all such characters from the output. White space characters in ASCII are space, newline, carriage return, tab, vertical tab, or form-feed