MATLAB: Is there any way to change an array output to display a word or phrase arrayMATLABmatrix I am simulating a random 4×1 array of 1s and -1s; Best Answer jStr = repmat( { 'Buy' }, numel( j ), 1 );jStr( j == -1 ) = { 'Sell' };I'm sure there are neater ways, but that should work. Related SolutionsMATLAB: Beginner – using a function to find last word of a phrase Try allwords: http://www.mathworks.com/matlabcentral/fileexchange/27184-allwordsstr = 'I am new to matlab, and am struggling.'theWords = allwords(str)strArray=char(theWords{:})theAcronym = strArray(:,1)' MATLAB: Custom reshaping of multidimensional arrays so?VNEW = permute(VOLD,[1 2 4 5 3]); Related QuestionHow to remove top phrases from a word cloudWord manupulationFull change of arrayWord frequency
Best Answer