How can I see the filter function implementation code at MATLAB?

6 views (last 30 days)
What's the command for I see the code of this function?
  2 Comments
John D'Errico
John D'Errico on 14 Jun 2019
Getting a job at The MathWorks is usually the suggested way to see code that is not provided as an m-file. It is also essentially the only way.

Sign in to comment.

Answers (1)

James Tursa
James Tursa on 14 Jun 2019
Edited: James Tursa on 14 Jun 2019
In general, if the function has an associated .m file then TMW is willing to show you that much. Also there may be information in the doc on the implementation details. Other than that, implementation details are proprietary.
In your specific case, the filter( ) function is built-in, so the only implementation details TMW is willing to share with you are in the filter.m file comments and in the doc.
  1 Comment
Walter Roberson
Walter Roberson on 14 Jun 2019
Many different filter() routines; some of them are built-in. The user has been asking about Type I filters, which are handled by dfilt.df1, and dfilt is a class for which some source is provided.
>> which -all filter
built-in (/Applications/MATLAB_R2019a.app/toolbox/matlab/datafun/filter)
filter is a Java method % java.util.Locale method
filter is a built-in method % connector.internal.LoggerLevel method
filter is a built-in method % matlab.lang.OnOffSwitchState method
/Applications/MATLAB_R2019a.app/toolbox/signal/signal/+dfilt/@singleton/filter.m % dfilt.df1 method
/Applications/MATLAB_R2019a.app/toolbox/signal/signal/+dfilt/@abstractfilter/filter.m % dfilt.abstractfilter method
/Applications/MATLAB_R2019a.app/toolbox/matlab/bigdata/@tall/filter.m % tall method
/Applications/MATLAB_R2019a.app/toolbox/simulink/simulink/@SigLogSelector/filter.m % SigLogSelector method
/Applications/MATLAB_R2019a.app/toolbox/comm/comm/@channel/filter.m % channel method
/Applications/MATLAB_R2019a.app/toolbox/distcomp/gpu/@gpuArray/filter.m % gpuArray method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@arima/filter.m % arima method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@dssm/filter.m % dssm method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@egarch/filter.m % egarch method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@garch/filter.m % garch method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@gjr/filter.m % gjr method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@LagOp/filter.m % LagOp method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@regARIMA/filter.m % regARIMA method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@ssm/filter.m % ssm method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@statespace/filter.m % statespace method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@varm/filter.m % varm method
/Applications/MATLAB_R2019a.app/toolbox/econ/econ/@vecm/filter.m % vecm method
/Applications/MATLAB_R2019a.app/toolbox/finance/ftseries/@fints/filter.m % fints method
/Applications/MATLAB_R2019a.app/toolbox/fixedpoint/fixedpointtool/@fxptui/filter.m % fxptui method
/Applications/MATLAB_R2019a.app/toolbox/matlab/timeseries/@timeseries/filter.m % timeseries method

Sign in to comment.

Categories

Find more on Conditional Mean Models in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!