Filter löschen
Filter löschen

extract column index of a particular values in the matrix

11 Ansichten (letzte 30 Tage)
Hi,
I got 1 x 10000 matrix named x1 (attached here), I intend to extrcat the indices of the colum which got the values in the range of 500 to 550.. Is there away to extract the indices of the column based on criteria...

Akzeptierte Antwort

Ive J
Ive J am 2 Feb. 2021
B = x1(x1 <= 550 & x1 >= 500);
  1 Kommentar
Turbulence Analysis
Turbulence Analysis am 2 Feb. 2021
Thanks, Ive. Actually, the requirement is to find along with indices,
so I have used as follows,,
B = find(x1 <= 550 & x1 >= 500);

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrix Indexing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by