How i remove the data >30 and <25 ? and how i make a pattern to remove them in any futuer data ?

4 comentarios

KALYAN ACHARJYA
KALYAN ACHARJYA el 6 de Abr. de 2020
After remove, what would be size of the futuer data? Is it same as originals?
Anonymous User
Anonymous User el 6 de Abr. de 2020
Same the orgnial size, in this plot 100x20
KALYAN ACHARJYA
KALYAN ACHARJYA el 6 de Abr. de 2020
Editada: KALYAN ACHARJYA el 6 de Abr. de 2020
When you remove the element from the matrix, what remains in that location?
Anonymous User
Anonymous User el 6 de Abr. de 2020
100X15
x=randi([25 30]),100,15);
y=randi([20 50]),100,5);
w=[x y];
plot(w)

Iniciar sesión para comentar.

 Respuesta aceptada

KSSV
KSSV el 6 de Abr. de 2020

1 voto

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 ;

Más respuestas (0)

Categorías

Productos

Etiquetas

Preguntada:

el 6 de Abr. de 2020

Editada:

el 6 de Abr. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by