How to find the given index values in a array?

1 回表示 (過去 30 日間)
Manoj
Manoj 2019 年 4 月 25 日
コメント済み: Manoj 2019 年 4 月 25 日
I have a matrix having 17 rows and 41 colums (find the attachment)
How to find the values at the top from 2nd column to last column with respect to the first column corresponing values

採用された回答

Andrei Bobrov
Andrei Bobrov 2019 年 4 月 25 日
in R2016b
T = readtable('Sheet2.xls','ReadVariableNames',0);
lo = T{:,2:end} ~= 0 & ~isnan(T{:,2:end});
[ii,~] = find(lo);
out = sortrows([T{:,2:end}(lo),T{:,1}(ii)],2);
  2 件のコメント
Manoj
Manoj 2019 年 4 月 25 日
Thank you very much
Manoj
Manoj 2019 年 4 月 25 日
sir
pls send me your mail id

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by