Clear Filters
Clear Filters

throwAsCaller(ME) error

1 view (last 30 days)
Omer Iqbal
Omer Iqbal on 10 Jan 2022
Answered: Nihal on 28 Dec 2023
HI, I have encoutered the error of throwAsCaller(ME) and I am not geeting all the outputs that I am supposed to get from the fucntions. How could I get rid of this error? Please have a look on attached snapshot.
Best

Answers (1)

Nihal
Nihal on 28 Dec 2023
Hi Omer
I understand that you are facing difficulty in finding out the error. If you're encountering an error with throwAsCaller(ME) and are not getting the expected outputs from your functions, it suggests that an exception is being thrown and caught somewhere in your code.
To resolve the issue, you'll need to do the following:
  1. Identify the Source of the Error: Check the error message provided by MATLAB when the exception is thrown. The message should give you an indication of what went wrong and where the error originated.
  2. Inspect the Call Stack: Look at the stack information provided with the error message. This will tell you the sequence of function calls that led to the error. Pay particular attention to the function listed just before throwAsCaller is called, as this is likely where the actual problem is occurring.
I hope this helps

Categories

Find more on Get Started with MATLAB 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!