MATLAB Answers

0

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

Asked by vinicius lanziotti on 14 Jun 2019
Latest activity Commented on by Joss Knight
on 6 Jul 2019
What's the command for I see the code of this function?

  2 Comments

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.

Products

1 Answer

Answer by James Tursa
on 14 Jun 2019
Edited by 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

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.