Borrar filtros
Borrar filtros

Adding more data points using interpolation

24 visualizaciones (últimos 30 días)
Pouya
Pouya el 3 de En. de 2022
Comentada: Pouya el 3 de En. de 2022
I have an array of 1x1382209 elements for Electric Field and an array of 1x172776 elements for Solar Zenith Angle (SZA). SZA follows a sinusoidal behavior and I want to give it more elements to "upsample" it to have as many data points as the Electric field array. I'm using upsample loosly here. I just need reasonable new data points maybe by interpolation of elements in SZA and adding the new data from interpolation exactly between the data points that's been intrapolated.
Thanks

Respuesta aceptada

Matt J
Matt J el 3 de En. de 2022
interp1(SZA, linspace(1 , numel(SZA), numel(ElectricField)) )
  3 comentarios
Matt J
Matt J el 3 de En. de 2022
Glad it worked, but please Accept-click the answer to indicate so.
Pouya
Pouya el 3 de En. de 2022
Done!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by