필터 지우기
필터 지우기

Smooth step changes in a array

조회 수: 11 (최근 30일)
Mikel
Mikel 2023년 3월 10일
답변: Swaraj 2023년 4월 5일
Hello,
I'm currently working with a robot, and because of some calulations, the commanded signal has step changes which I want to somehow smooth this steps to a progressive curve. My question is if there is proper matlab tool which can help me with this task or if I have to do it manually. Here my data and a plot .
Thanks in advance
  댓글 수: 3
Mathieu NOE
Mathieu NOE 2023년 3월 13일
hello
you may want to implement a discrete low pass filter in your command signal
the very simple first approach I can suggest is in the form a first order recursive filter
a = constant between 0 and 1
out_new = out_old*a + input*(1-a)
Jan
Jan 2023년 3월 13일
A simple moving mean filter might be working also.

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

답변 (1개)

Swaraj
Swaraj 2023년 4월 5일
There can be multiple ways of doing it. One common method is to use a low-pass filter which can remove high frequency components and smooth the signal.
You can go through the following Documentations for more details.

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by