MATLAB: Making a string and number matrix matrix array I am trying to make a matrix which has strings and numbers such as: a b c d 1 3 4 5 5 6 7 8 9 10 11 12 where a,b,c,d represent a word of sentence with no numerical value, how can I do that? Best Answer With Cell Arrays, e.g.,C={'a','b'; 3 , 4} Related SolutionsMATLAB: 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; MATLAB: Mixing and merge two vectors This works:A = [1 2 3 4];B = [5 6 7 8];C = reshape([A; B], [], 1)';C = 1 5 2 6 3 7 4 8 Related QuestionRepeat parts of a matrixHow to combine cell arrays into a uniform oneI want to concate two tables vertically.the table has no variable name.how can I do thatDivide an array in n different arraysOutput of the row of a vector which has the same entry as a second vectorFill matrix from cell matrix
Best Answer