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.

1 回表示 (過去 30 日間)
[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

採用された回答

Thorsten
Thorsten 2019 年 5 月 13 日
lowscale = numData;
lowscale(lowscale < 1.5) = 0;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeElementary Math についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by