Adding more data points using interpolation

조회 수: 8 (최근 30일)
Pouya
Pouya 2022년 1월 3일
댓글: Pouya 2022년 1월 3일
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

채택된 답변

Matt J
Matt J 2022년 1월 3일
interp1(SZA, linspace(1 , numel(SZA), numel(ElectricField)) )
  댓글 수: 3
Matt J
Matt J 2022년 1월 3일
Glad it worked, but please Accept-click the answer to indicate so.
Pouya
Pouya 2022년 1월 3일
Done!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by