what does catch exception mean in Matlab

1 view (last 30 days)
Mugabe Robert
Mugabe Robert on 26 Jun 2020
Commented: Steven Lord on 23 Dec 2023
catch exception
exception = PluginManager.convertPluginException(exception, ...
'MATLAB:audiovideo:audioread');
throw(exception);
end
I need help with the above information in Matlab R2014a
  4 Comments
Raisul
Raisul on 22 Dec 2023
I humbly apologize for not providing adequate information on my question. To be honest I did not think I would get any reponse, but that's no excuse for my sloppiness. I also apologize in advance for any grammatical error, as English is my second language.
I am using MATLAB R2013a in an Arch linux machine on wine. In my windows machine and another laptop running Arch, audioread() can read all sorts of file including mp3, opus etc. But the machine where I'm facing the problem, MATLAB can't use audioread() for any other format but wav. When I use, say for example an mp3 file, the following error shows up in the command window -
Error using audioread (line 127)
File could not be read due to an unexpected error. Reason: Reason:
Unknown error 0xC00D36BB
I will be grateful if anyone can provide any solution to this problem.
Steven Lord
Steven Lord on 23 Dec 2023
Because this is not related to catching exceptions, please start a new question using the Ask link near the top of the page. That will make it more likely that people will notice your question.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 26 Jun 2020
catch exception
does not mean anything special to matlab. Here exception is just being used as a variable name, same as if they had coded
catch WhatWentWrong
and then used WhatWentWrong in the places the name exception was used.
When catch is followed by a variable name then when the catch is triggered, information about the problem is stored in the variable. The information is the same as you would get by querying for the last exception.

Categories

Find more on Entering Commands 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!