How can I download thd function file?
显示 更早的评论
My MATLAB version is 2012a. It does not support the thd command. I need the function file for thd.
回答(1 个)
John D'Errico
2016-10-4
编辑:John D'Errico
2016-10-4
0 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!