Problem with SegmentTool.

1 回表示 (過去 30 日間)
Veronika
Veronika 2016 年 9 月 1 日
コメント済み: Veronika 2016 年 9 月 6 日
Dear all,
I have a problem (maybe small problem, but I can´t handle it) with SegmentTool. I downloaded zip here https://www.mathworks.com/matlabcentral/fileexchange/38484-segmenttool--an-interactive-gui-for-segmenting-images and I unzipped this folder. But when I write to the Command Window SegmentTool, so I see this error:
Undefined function 'audioread' for input arguments of type 'char'.
Error in SegmentTool (line 133)
[wav,freq] = audioread('notify.wav');
How do I resolve this? Thank you for your answers.

採用された回答

Geoff Hayes
Geoff Hayes 2016 年 9 月 1 日
Veronika - which version of MATLAB are you using? According to audioread, this method was introduced in R2012b and so you may not have this function if using an earlier version of MATLAB. At the Command Line, type
which audioread -all
to see if you have this function and
ver
to determine your version of MATLAB.
  2 件のコメント
Veronika
Veronika 2016 年 9 月 4 日
Yes, I have really old version (R2011b). So I don´t have audioread function. I try another version. Thank you for your answer.
Image Analyst
Image Analyst 2016 年 9 月 4 日
Veronika, it appears you didn't see my solution below. Of course using a more modern version is better though.

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2016 年 9 月 1 日
You must have a really old version. Try wavread() instead:
[wav,freq] = wavread('notify.wav');
  10 件のコメント
Image Analyst
Image Analyst 2016 年 9 月 6 日
Either you have it open in another program, or you have it saved in a place where you can't edit it, like under the Program Files folder somewhere. Move it to a folder where you do have permission.
Veronika
Veronika 2016 年 9 月 6 日
Ok, so I commented out this two lines:
[wav,freq] = audioread('notify.wav');
notification = audioplayer(wav,freq);
Is it enough? Application is started in order, but some buttons and sliders don´t react and error appeares. So far it does not affect the function of the application.
So far, thank you very much.

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

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by