Remove data from matrix
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Anonymous User
il 6 Apr 2020
Modificato: KALYAN ACHARJYA
il 6 Apr 2020
How i remove the data >30 and <25 ? and how i make a pattern to remove them in any futuer data ?
4 Commenti
KALYAN ACHARJYA
il 6 Apr 2020
Modificato: KALYAN ACHARJYA
il 6 Apr 2020
When you remove the element from the matrix, what remains in that location?
Risposta accettata
KSSV
il 6 Apr 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!