MATLAB: Adding matrix values into a string matrixstring Hello, I want to turn a matrix a=[1 2 3 4 5 6 7 8 9] for say into a string with the three first values of the array b=123; Any ideas how to do it? Best Answer a=[1 2 3 4 5 6 7 8 9] ;str = char(a+'0')str = '123456789' Related SolutionsMATLAB: Help running Matlab scriptMATLAB: Matrix change affect other matrix B=[ 4 5 6 6 3 8 4 8 7 3 5 3]idx1=B==7;idx2=B==3;B(idx1)=3;B(idx2)=7; Related QuestionFilter string in the stringDivide an array in n different arraysString problemQUESTION ON MATRIX RESHAPING
Best Answer