フィルターのクリア

two different plot in the same 3D figure

1 回表示 (過去 30 日間)
Mos_bad
Mos_bad 2019 年 7 月 10 日
編集済み: Geoff Hayes 2019 年 7 月 11 日
x is normal random vector ranges from 0.05 to 1.2 and y varies from 0 to 22. I want to plot 2D PDF of x and y in the same figure. Z axis values are probability. Here is my code :
x= 0.05 + (1.2-0.05)*rand(1000,1);
[f,xi] = ksdensity(x);
y = 22*rand(1000,1);
[ff,yi] = ksdensity(y);
plot3(yi,xi,f,'b*');
hold on;
plot3(xi,yi,ff,'ro');
Any help to solve the issue is appreciated.

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by