フィルターのクリア

Remove Data Outside Range

7 ビュー (過去 30 日間)
Doug
Doug 2018 年 10 月 10 日
コメント済み: Doug 2018 年 10 月 10 日
I am trying to remove data in both columns based on a data range for the first column. i.e. Col1<4 and Col1>20. And then within the new range determine the max value in Col2 and give me the corresponding value in Col1

採用された回答

ANKUR KUMAR
ANKUR KUMAR 2018 年 10 月 10 日
AA=temp(temp(:,1)>=4 & temp(:,1)<=20,:);
There is no need to remove. Directly store the numbers which you need.
[xx,yy]=max(AA(:,1));
AA(yy,:)
  3 件のコメント
ANKUR KUMAR
ANKUR KUMAR 2018 年 10 月 10 日
Use this one,
[xx,yy]=max(AA(:,2));
AA(yy,:)
ans =
13.2813 0.0018
Doug
Doug 2018 年 10 月 10 日
Awesome, thanks for the help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by