matlab数值计算。

조회 수: 10 (최근 30일)
mejihe
mejihe 2023년 4월 3일
답변: xoyotan 2023년 4월 3일
重新导入data.mat,查找数据B中非数NaN的个数,并将B中全部NaN替换成0,最后计算替换后所有元素的平均值。
(展示MATLAB代码和运行结果,默认精读为小数点后4位)

채택된 답변

xoyotan
xoyotan 2023년 4월 3일
用循环遍历向量,然后用isnan做判断条件,平均值用mean求

추가 답변 (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