MATLAB Answers

Is there a way to check some processing flags for complex algorithms with multiple calculations if overflow, underflow occurred in processing ?

1 ビュー (過去 30 日間)
Firan Lucian
Firan Lucian 2019 年 8 月 7 日
Commented: Walter Roberson 2019 年 8 月 10 日
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 件のコメント

サインイン to comment.

採用された回答

Divya Yerraguntla
Divya Yerraguntla 2019 年 8 月 10 日
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
Have a look at this doc for more information about the function.
Hope it helps!

  1 件のコメント

サインイン to comment.

More Answers (0)

サインイン してこの質問に回答します。

製品


リリース

R2018b

Translated by