How to check the algorithm of the internal functions?
18 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Yuantong Li
il 19 Dic 2020
Commentato: Yuantong Li
il 21 Dic 2020
Hello,
I am trying to figure out the internal algorithm of "stft()". I typed "edit stft" at command window. Then I got the whole script of "stft()". However, there is another internal function called "computeDFT" (as showed in the picture 1). With the help of the command "edit computeDFT" I can not get access of this function (as showed in the picture 2). Does anybody know how to check the whole script of the function "computeDFT()" here?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/465990/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/465995/image.png)
Many Thanks!
Yuantong
5 Commenti
Risposta accettata
Steven Lord
il 20 Dic 2020
computeDFT is a private function in the same directory as the stft.m file. As such it is intended only be called by code in that same directory. If you select the call in that file, right-click on it, and select to open the file MATLAB will look for that function "in the context of stft" which is in the directory that can access the private function.
If you were hoping to call computeDFT in your code that is not possible unless it is in the toolbox directory, and I strongly recommend against you putting your own code in the toolbox directory (or indeed any directory under matlabroot.) This private function is not intended to be called by users directly.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!