How to smoothen the signal and make a good envelope

조회 수: 3 (최근 30일)
Ramesh Bala
Ramesh Bala 2020년 1월 31일
댓글: Ramesh Bala 2022년 12월 7일
I have a velocity and time data.I would like to smoothen the signal as the hilbert of the signal is very dense ? How to do it
filenames= ["p1"]; % 0 degrees
for k=1:numel(filenames)
s(k)=load (filenames{k});
signal(k,1:length(s(k).ans))=s(k).ans;
end
load('t.mat')
figure;
plot(t,(signal(k,:)),t,envelope(signal(k,:)),time4(k),a6(k),'ro');
hold on
grid on;xlim([0 8E-4])
ylim([-inf inf])
  댓글 수: 2
Siddharth Singh
Siddharth Singh 2022년 10월 11일
Hi, just wanted to know what does .ans do in the code?
Ramesh Bala
Ramesh Bala 2022년 12월 7일
.ans is just the extension of the variable Stored as such. It has nothing to do in the code

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

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 3월 15일
You can try doing this interactievly using the new Smooth Data task. You can test out a variety of settings to see what works with your data. See here for more info.
Consider going through this video from our course on Coursera to see if it helps you out as well.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by