` [numData,~,rawData] = xlsread('C3.csv'); lowscale = zeros(size(numData)); lowscale = numData(any(numData < 1.5),:); `

This code is giving me all values which are also > 1.5

Skip to content# MATLAB: I have a 101 by 23 matrix, where first column is the ID of persons. I want to extract each value of every person <1.5, and store them in a new matrix, SO resultant matrix should have all values <1.5 and rest can be substituted to 0.

###### Related Question

extract each element that meet a condition and store in a new matrix

` [numData,~,rawData] = xlsread('C3.csv'); lowscale = zeros(size(numData)); lowscale = numData(any(numData < 1.5),:); `

This code is giving me all values which are also > 1.5

- Delete and merge rows and columns based on values of other matrix
- Getting element row and column (index location) out of a matrix
- How to eliminate and create new data file
- 1D Regression with CNN
- How can read multiple images from different subfolders
- Writing/ exporting 3D data set/matrix from Matlab to EXCEL
- How to create an N*1 matrix for n individual fixed effects under unbalanced panel data
- How to save workspace variables to an excel file, storing them coloumn by coloumn with their respective name in the first row
- How to read image data sets from a folder at once

## Best Answer