what does catch exception mean in Matlab
显示 更早的评论
catch exception
exception = PluginManager.convertPluginException(exception, ...
'MATLAB:audiovideo:audioread');
throw(exception);
end
I need help with the above information in Matlab R2014a
4 个评论
Raisul
2023-12-22
were you able to solve this problem? My R2013a suddenly stopped working.
Steven Lord
2023-12-22
@Raisul You should probably start a new question using the Ask link near the top of the page. When you do, please provide a lot more information about what "suddenly stopped working" means in this context.
- Do you receive warning and/or error messages? If so the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window) may be useful in determining what's going on and how to avoid the warning and/or error.
- Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
- Did MATLAB crash? If so please send the crash log file (with a description of what you were running or doing in MATLAB when the crash occured) to Technical Support so we can investigate.
What operating system are you using?
What were you doing or running when MATLAB "stopped working"?
Did anything change about your MATLAB installation (installed a new add-on from File Exchange or a new product, uninstalled a product), your operating system (installed a Windows update, for example), or your machine (swapped out the processor) between the last time it worked and the first time it didn't?
Raisul
2023-12-22
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
2023-12-23
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.
回答(1 个)
Walter Roberson
2020-6-26
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Entering Commands 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!