How to divide a signal to a function?
1 回表示 (過去 30 日間)
古いコメントを表示
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/682708/image.png)
this is the function:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/682713/image.png)
and the result (when I divide them) is this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/682718/image.png)
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
0 件のコメント
採用された回答
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
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
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!