where can I find the source code of function in Matlab2016b?

1 view (last 30 days)
most function can find in Matlab2015b, so I want to know where I can find the source code which only run under 2016b,such as function imageDatastore? thanks!

Answers (1)

John D'Errico
John D'Errico on 18 Dec 2016
Many functions are provided as m-files. You can view an m-file by using the type function at the command line. Thus
type pca
Thus, from the stats toolbox, I can view the course code for the pca function as above.
NEVER use edit on provided files like this, as it is too easy to accidentally make changes to the code, thereby creating a bug in that code. You would then need to download MATLAB again to repair the problem.
For compiled functions, source code is never provided. Period.

Categories

Find more on Dimensionality Reduction and Feature Extraction in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!