フィルターのクリア

How to calculate the diameter of 3D Gaussian normal distribution?

2 ビュー (過去 30 日間)
Muhamed Sewidan
Muhamed Sewidan 2020 年 10 月 8 日
コメント済み: Muhamed Sewidan 2020 年 10 月 8 日
I want to calculate the diameter of this gaussian distribution. Is there any simple mean to do so?

採用された回答

KSSV
KSSV 2020 年 10 月 8 日
編集済み: KSSV 2020 年 10 月 8 日
Let X, Y,Z be your matrices.
val = 0.5 ; % at this z-value I want radius / diameter
idx = abs(Z-val) < 10^-3 ;
x = X(idx) ; y = Y(idx) ; z = Z(idx) ;
C = [mean(x) mean(y)] ; % Center of circle
dx = C(1)-x ;
dy = C(2)-y ;
R = sqrt(dx.^2) ;
D = 2*mean(R);
Also you can try fitting a circle with the obtained (x,y) using https://in.mathworks.com/matlabcentral/fileexchange/5557-circle-fit

その他の回答 (0 件)

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by