Why does convolution work differently on matlab and simulink?
3 次查看(过去 30 天)
显示 更早的评论
I want to convolution two functions.
I'm going to create each function in a simulink
and then
I'm going to bring it to Matlab
and then
If I do the convolution that
I can get the function I want.
(But it is unnecessarily long in the back.)
But if I do the convolution in a simulink
The results are different, and the results are wrong.
like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1384794/image.png)
(two sine waves)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1384799/image.png)
right one
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1384804/image.png)
wrong one
How I get the right result in simulink?
0 个评论
回答(1 个)
Ganapathi Subramanian
2023-5-23
Hi ,
It is my understanding that you are working on convolution of two signals and have trouble in performing the convolution operation in Simulink. The Convolution Simulink block works when discrete signals is given as input. Since, the input which you are giving to the convolution block is continuous, it produces a wrong result.
For further information regarding Convolution Simulink block, refer to the below documentation
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!