MATLAB: How to delete the rows of a matrix in matlab under a given condition each element logical statementmatrix Hello everybody, I have a matrix which has 10118 rows and 14 columns. I would like to delete the number of rows having values greater than 100. How can I do this? Thanks in advance! Best Answer EDITED%Numbers greater than 100idx = matrix > 100;matrix ( ~ ( sum ( idx , 2) == 0 ) , : ) = []%__________________________%Numbers lesser than 100idx = matrix < 100;matrix ( sum ( idx , 2 ) ~= 0 , : ) = [] Related SolutionsMATLAB: Can anyone answer why don’t the grid on the surface is not coming in this 3D plot Your ‘zz’ matrix is (2001x2001). You cannot see the individual grid lines because they are too close together on your plot. MATLAB: How to solve a 5×5 matrix in Matlab A\b Related QuestionCompare Row & only keep the highest valueHow to remove the connection between head and end?3D matrix with various chain!!How to load a dat file which includes NaN valueHow to read a txt and store specific line in matrixAdd a value to an element in a matrixTo get tick label at extremes of an axisHow to create a new matrix by using existing values in a column
Best Answer