How to divide a signal to a function?

조회 수: 1 (최근 30일)
Fatemeh Sharafi
Fatemeh Sharafi 2021년 7월 13일
댓글: Fatemeh Sharafi 2021년 7월 13일
Hi dear friends. I have a nonstationary signal and I want to divide it to a 4-order polynomial function. but the result doesn't seem correct:
I simply do it like :
w= signal./function
Here's the signal plot:
this is the function:
and the result (when I divide them) is this:
I don't know what that big peak is? Logcally it shouldn't seem like this and should be like a stationary signal
I would be so garteful if you guide me

채택된 답변

Chunru
Chunru 2021년 7월 13일
The "function" has a value close to 0 and thus division by 0 (or small value) results in the big peak.
  댓글 수: 3
Chunru
Chunru 2021년 7월 13일
It depends on what you want to do, which you did not explain clearly. Anyway you should always avoid the division by zero. You many consider the following:
w= signal./ (f+0.5); % don't use function as variable name
Fatemeh Sharafi
Fatemeh Sharafi 2021년 7월 13일
this function was obtained from curve fitting the 4th-order polynomial func to a non-statinary signal. Then I used the fit function to convert the nonstationary signal to stationary by divide them.
thanks by the way. Your help was perfect

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Correlation and Convolution에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by