MATLAB: How to count specific numbers in a matrix I have a matrix like: 100 98 09 88 200 202 23 88 00 76 23 1 23 34 198 I want to count the number of matrix elements which are larger than 100. How to writing the code? Thanks!! Best Answer sum(X(:)>100); Related SolutionsMATLAB: How to decrease the number of points in a matrix I suggest http://www.mathworks.com/help/matlab/ref/spline.htmlx = 1 : length(psdn);x128 = linspace(x(1), x(end), 128);p128 = spline(x, psdn, x128);plot(x128, p128); MATLAB: I want to convert pixel values into image. how to do it , i dont want to show it as graph etc i want to show the original image. With the data in d, you could tryimage(reshape(uint8(d),[],35));colormap(gray(256))but the result is not recognizable.Maybe the data was extracted by a zig-zag scan ? Related QuestionI get Error while reading CSV file.How to get the column and vector of 2nd ones in a matricesCalculate mean of knee angle of five gait cyclesGet the last 5 column for 1st rowHow to read specific parts of file and then write it to a text file*Import data from a file – HELP*
Best Answer