How to crop it? And I cant find resample freq. also.
Extract the selected region from the harp, pax, and wanc signals. Make sure that the extracted signals are named harp_ROI, pax_ROI, and wanc_ROI respectively and display them
조회 수: 18 (최근 30일)
이전 댓글 표시
TASK
Extract the selected region from the harp, pax, and wanc signals. Make sure that the extracted signals are named harp_ROI, pax_ROI, and wanc_ROI respectively and display them.
Incorrect
Are the harp_ROI, pax_ROI, and wanc_ROI signals plotted?
Have all three signals been cropped?
How to crop it? And I cant find resample freq. also.
답변 (2개)
Brahmadev
2024년 4월 4일
I am assuming that these are output signals from a simulation and stored in your workspace. Cropping the signal or extracting a certain part of it can be done simply by:
% Let's say you want to crop the signals between indices startIdx and endIdx.
startIdx = 101; % Example start index
endIdx = 200; % Example end index
% Cropping the signals
harp_ROI = harp(startIdx:endIdx);
pax_ROI = pax(startIdx:endIdx);
wanc_ROI = wanc(startIdx:endIdx);
For resampling the signal, you can use the resample function in MATLAB and choose any desired frequency you would like:
Fs_original = 1000; % Original sampling frequency in Hz
Fs_new = 500; % New desired sampling frequency in Hz
% Resampling the signal
harp_resampled = resample(harp, Fs_new, Fs_original);
Refer to the following documentation for more information:
Hope this helps!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Multirate Signal Processing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!