Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to filter a data

1 visualización (últimos 30 días)
satish kumar Gouda
satish kumar Gouda el 21 de Oct. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hello,
How can i filter the data by selecting specific point with certian descretization,
for example i have data of
X = (0.081,0.082,0.089,0.091,0.095,0.098,0.13,0.15,0.18,0.21,0.25,0.31)
and i want to select
x =(0.081,0.091,0.13,0.21,0.31)

Respuestas (1)

Stephan
Stephan el 21 de Oct. de 2019
You can do this if there is a pattern:
X = [0.081,0.082,0.089,0.091,0.095,0.098,0.13,0.15,0.18,0.21,0.25,0.31];
x = [X(1:3:end) X(end)]
In your case the pattern does not get the last value, because it does not meet the pattern given for all other values. So the
X(end)
statement is needed to complete x as you wanted it to have.

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by