I have a one dimensional waveform that is made from the measurement in an oscilloscope, and am trying to shorten the length of the wave, (that is stored as.a 1999*1 double) to a length of 361, so it looks like essentially the same waveform when plotted.

回答 (2 件)

madhan ravi
madhan ravi 2018 年 10 月 23 日

0 投票

wave %of size 1999*1
wave(1:361,1) %of size 361*1

2 件のコメント

madhan ravi
madhan ravi 2018 年 10 月 23 日
the above demonstrates the first 361 elements of that waveform is taken to proceed for further calculations
madhan ravi
madhan ravi 2018 年 10 月 23 日
if there is something not clear let know else accept the answer so other people know the question is solved

サインインしてコメントする。

Walter Roberson
Walter Roberson 2018 年 10 月 23 日

0 投票

https://www.mathworks.com/help/signal/ref/resample.html
You might want to experiment with the different resample methods available.
Another approach is to fft and then ifft with the smaller size specified.

質問済み:

2018 年 10 月 23 日

回答済み:

2018 年 10 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by