Validated Audio Plugin error

1 回表示 (過去 30 日間)
Pablo Panitta
Pablo Panitta 2019 年 10 月 2 日
回答済み: Charlie DeVane 2019 年 10 月 9 日
Can anybody give me hint what is happening here? I'm trying to validateAudioPlugin exactly as is written in the manual. No changes of default names or location files, but the following message appears:
When I execute "Change current folder", error still remains.
...and all over again.
I believe must be a very basic solution, but not possible to solve it by mylsef.
Thanks
Pablo
  2 件のコメント
Walter Roberson
Walter Roberson 2019 年 10 月 2 日
That turns out to name a different folder than you cd'd to
Did you start all of this by using
openExample('audio/DesignAnAudioPluginExample')
I would expect problems if you had not done that first.
Pablo Panitta
Pablo Panitta 2019 年 10 月 3 日
Hi Walter
yes, but nothing happened. I´ve just fixed it copying the file outside default folder. I reaaly don´t understand why, but worked.
Thanks
Pablo

サインインしてコメントする。

採用された回答

Charlie DeVane
Charlie DeVane 2019 年 10 月 9 日
Hi Pablo,
Bottom line on top: the problem is the current folder you were working in. You didn't actually need to copy the file because it is already on the MATLAB path, but you did need to cd outside the "default folder". For example, if you cd to a folder inside your Documents folder, then the command will work without copying the plugin file.
Details:
You were working in a folder that
  1. is inside the MATLAB installation, and
  2. has a name beginning with "+".
Modifying or creating files inside the MATLAB installation is generally a bad idea (unless MathWorks tech support instructs you to while helping you fix a problem).The matlabroot command will tell you the root folder of your MATLAB installation. I can see that your MATLAB is installed in D:\Program Files\MATLAB\R2019b, and you were working under this.
Folders whose names begin with "+" have a special meaning to MATLAB and are called "package folders". This played a role in the behavior you saw. This is an advanced topic; if you would like to learn more, see https://www.mathworks.com/help/matlab/matlab_oop/scoping-classes-with-packages.html.
hope this helps,
Charlie

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio Plugin Creation and Hosting についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by