MATLAB で、行列の NaN 値を空白として表示するにはどうすればよいですか?
이전 댓글 표시
次のような行列を作成したとき、
A = rand(3,3);
A(ceil(9*rand(3,1))) = nan
以下のような出力が得られます。
A =
0.5651 0.8702 0.1923
NaN NaN 0.7157
0.0237 0.5195 NaN
この出力に含まれる NaN を次のように空白に変換する方法を教えてください。
A =
0.5651 0.8702 0.1923
0.7157
0.0237 0.5195
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 文字と文字列에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!