Multiple density function with changing parameters plot in same graph
1 次查看(过去 30 天)
显示 更早的评论
I want to plot multiple density curves in a single graph like the attached one. In this graph I want variable values (fixed) in one axis say X, normal pdf values in Z and how many parameter set is being used in Y axis... Can anybody please help me regarding this??? Thanks in advance...
Data set can be like this:
X = -3:0.01:3; X = X';
pd1 = normpdf(X, 0, 1);
pd2 = normpdf(X, 1, 1);
pd3 = normpdf(X, 2, 1);
pd4 = normpdf(X, 3, 1);
In X axis it will contain X values. In Z axis it will show pd values and in Y axis it will show 1, 2, 3, 4.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165646/image.jpeg)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Bar Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!