フィルターのクリア

How to calculate and plot this pcolor plot?

4 ビュー (過去 30 日間)
Ashfaq Ahmed
Ashfaq Ahmed 2023 年 5 月 25 日
コメント済み: Ashfaq Ahmed 2023 年 5 月 26 日
Hi, I have a 3D matrix of 1100x800x764 size. This forms a 1100 by 800 grid cell with 764 different samples.
I want to calculate every single grid cell's mean value to create a 2D mean 1100x800 grid cell. The pcolor plot should satisfy this condition -
It means, every pixel's mean value should be greater or equal than the ratio of the standard deviation of that pixel and the root of the sample size (N = 764). Any pixel that does not confirm this condition will automatically be set as NaN. Rest of the pixels should be pcolor mapped :)
Any feedback from you will be much appreciated!!

採用された回答

KSSV
KSSV 2023 年 5 月 25 日
A = rand(1100,800,764) ;
mu = mean(A,3) ;
sigma = std(A,[],3) ;
idx = mu >= sigma/sqrt(764) ;
h = pcolor(idx) ;
h.EdgeColor = 'none' ;
  7 件のコメント
KSSV
KSSV 2023 年 5 月 26 日
You already have it in mu right?
Ashfaq Ahmed
Ashfaq Ahmed 2023 年 5 月 26 日
Yes. But that is a general mean of 764 data points. Not the bootstrap one.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by