How can I download thd function file?
Show older comments
My MATLAB version is 2012a. It does not support the thd command. I need the function file for thd.
Answers (1)
John D'Errico
on 4 Oct 2016
Edited: John D'Errico
on 4 Oct 2016
0 votes
If thd.m is in a MATLAB toolbox that was released later than your version, sorry, but you cannot do so. You need to upgrade your release of MATLAB to get a current toolbox. There is no alternative, unless you are willing and able to write a thd.m file yourself, or you are willing to use a File Exchange tool to do the job. This might help:
https://www.mathworks.com/matlabcentral/fileexchange/40455-computes-the-total-harmonic-distortion--thd--of-a-signal
And, no. It does not matter how badly you need it. If you truly need something from a more recent toolbox, then you truly need to upgrade MATLAB.
Categories
Find more on MATLAB 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!