Extracting only certain data from a matrix

I have a very large matrix and I need only certain data to show from it. I need only the data that has values of 3 in the first column. How do I find this.

Réponses (2)

Parth Saraf
Parth Saraf le 11 Juil 2023
Hi,
You can try using this:
M(M(:, 1) == 3)
Hope this helps!

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Question posée :

le 11 Juil 2023

Commenté :

le 11 Juil 2023

Community Treasure Hunt

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

Start Hunting!

Translated by