Replacing elements in a table

4 ビュー (過去 30 日間)
Wesso
Wesso 2019 年 3 月 16 日
回答済み: madhan ravi 2019 年 3 月 16 日
I have Table A that constitutes of arrays, Some of the columns were computed using algebraic equations. This yielded certain numbers to be Inf and -Inf
How can I remove these from A and replace them with NaNs?

採用された回答

madhan ravi
madhan ravi 2019 年 3 月 16 日
A=table2array(A);
A(isinf(A)|-isinf(A))=nan;
A=array2table(A)

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by