Remove data from matrix
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Anonymous User
le 6 Avr 2020
Modifié(e) : KALYAN ACHARJYA
le 6 Avr 2020
How i remove the data >30 and <25 ? and how i make a pattern to remove them in any futuer data ?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/282298/image.jpeg)
4 commentaires
KALYAN ACHARJYA
le 6 Avr 2020
Modifié(e) : KALYAN ACHARJYA
le 6 Avr 2020
When you remove the element from the matrix, what remains in that location?
Réponse acceptée
KSSV
le 6 Avr 2020
If A is your array....
You can remove data using:
A(A>30) = [] ;
A(A<25) = [] ;
Or replace them with NaN's, if yu want same size.
A(A>30) = NaN ;
A(A<25) = NaN ;
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!