How to find the given index values in a array?

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

 Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 25 Apr. 2019

1 Stimme

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 Kommentare

Manoj
Manoj am 25 Apr. 2019
Thank you very much
Manoj
Manoj am 25 Apr. 2019
sir
pls send me your mail id

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 25 Apr. 2019

Kommentiert:

am 25 Apr. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by