Show error message, Ignore it and save the error information in a file

1 Ansicht (letzte 30 Tage)
TYo
TYo am 27 Mär. 2015
Bearbeitet: TYo am 30 Mär. 2015
I would like to do what the title says...
My code EITHER shows the message and interrupts the code OR ignores the error and continues.
This one ignores it:
try
aboveA = find(Data(:, 1) > A);
~isempty(aboveA)
msgbox(sprintf('Values at index %d are bigger than %d', aboveA, A), 'Error');
catch
end
And this one shows and interrupts:
try aboveA = find(Data(:, 1) > A); ~isempty(aboveA) catch msgbox(sprintf('Values at index %d are bigger than %d', aboveA, A), 'Error'); end
Any ideas?

Antworten (0)

Kategorien

Mehr zu Desktop finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by