MATLAB: How to convert entries of a matrix to a character array arraymatrix arraystrings Say you have the matrix [1,0,1]. How would you convert this into the character array '101' in as few steps as possible? Best Answer num2str([1,0,1],'%d') Related SolutionsMATLAB: Convert string to matrix B = A - '0'; MATLAB: How to remove entries form a struct array Logical indexing should work, just note that you need brackets around s.area.field1 = 'area'; value1 = num2cell(1:10) ;field2 = 'eccentricity'; value2 = num2cell(41:50);s = struct(field1,value1, field2, value2);sReduced = s([s.area] > 5); Related QuestionSingle legend entry for all lines of plotted arraySample letters from a character array2D array
Best Answer