필터 지우기
필터 지우기

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개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by