How get a mean value without nan values?

1 次查看(过去 30 天)
I have 1345*649*90 double type chlorophyll-a dataset. I got mean value using the nanmean. But after plotting the data, the some white patches are on the colormap. I want to solve this issue. This is the code which I used get the mean.
SWM_mean=squeeze(nanmean(SWM,3));
  3 个评论
Star Strider
Star Strider 2023-4-26
If you have R2023a, another option is to use:
SWM_Mmean = fillmissing2(mean(SWM,3), 'linear');
The fillmissing2 function was introduced in R2023a.
.
Sakuni Samarakoon
Sakuni Samarakoon 2023-4-27
I have Matlab version R2020a. Thank you for your response and this will be important my future works.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Orange 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by