Is there a way to check some processing flags for complex algorithms with multiple calculations if overflow, underflow occurred in processing ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Firan Lucian
am 7 Aug. 2019
Kommentiert: Walter Roberson
am 10 Aug. 2019
Is there a way to check some processing flags for complex algorithms with multiple calculations if overflow, underflow occurred in processing.
Like denormalized (subnormals) inf, nan operations occurred in processing flow.
Complex algos like big matrix multiplication, eigen solvers, Cholesky decomposition, svd ..
0 Kommentare
Akzeptierte Antwort
Divya Yerraguntla
am 10 Aug. 2019
Hi Firan,
You could use "dbstop" function to pause execution at the line that meets a specified condition. The below line of code could be used to pause execution when the code returns an infinite value (Inf) or a value that is not a number (NaN) as a result of an operator, function call, or scalar assignment.
dbstop if naninf
Hope it helps!
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Argument Definitions 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!