how do you filter time data using an analog filter without Simulink simulation?
2 次查看(过去 30 天)
显示 更早的评论
I have some oscilloscope data (a time vector and a data vector) and would like to simulate the results if I filter it using an analog filter. (Some of my data files may have varying sample rates). The mkfilt and other filter design tools are great, but most of the 'filter' commands run digital filters on data vectors. Other than running a simulink model and reading the time & data vectors in from the workspace, apply the filter, then saving the output, is there an easier method to run the through the continuous filter in an m-file script?
0 个评论
回答(1 个)
Star Strider
2017-5-11
You cannot use an analog filter in MATLAB or any other digital (discrete) environment. All continuous (s-space) filters are converted to discrete (z-space) filters, implicitly or explicitly.
You can only use an analogue filter as an analogue filter by realising it in hardware.
2 个评论
Star Strider
2017-5-11
If I remember correctly, Simulink is C code and then compiled at run time. That could explain the increased efficiency of Simulink blocks.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Analog Filters 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!