Borrar filtros
Borrar filtros

Input a vector whose number of elements is NaN. Let's replace the NaN elements in the vector with the previous value.

2 visualizaciones (últimos 30 días)
help me :Input a vector whose number of elements is NaN. Let's replace the NaN elements in the vector with the previous value.

Respuestas (1)

Chunru
Chunru el 5 de Sept. de 2021
A = [1 3 NaN 4 NaN NaN 5];
F = fillmissing(A,'previous')
F = 1×7
1 3 3 4 4 4 5

Categorías

Más información sobre Fourier Analysis and Filtering en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by