Plotting 2D gaussian distribution in 3D

12 ビュー (過去 30 日間)
Darren
Darren 2014 年 2 月 19 日
編集済み: Darren 2014 年 2 月 19 日
So I'm wanting to see in 3D the 2D guassian distribution with the pdf in the 3rd dimension. Hopefully this makes sense...
Anyway I'm trying something simple for R1n = 2x100 matrix containing 100 samples and 2 dimensions
[X,Y]=meshgrid(R1n(1,:),R1n(2,:)); %form x-y plane
Z=peaks(X,Y);
plot3(X,Y,Z);
but am not even coming close? Any advice?

回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by