Matlab strcat function troubles with spaces
Although STRCAT ignores trailing white space, it still preserves leading white space. Try this: strcat(‘red’,’ yellow’,’ white’) Alternatively, you can just use the concatenation syntax: [‘red ‘ ‘yellow ‘ ‘white ‘]