Multiple density function with changing parameters plot in same graph
3 views (last 30 days)
Show older comments
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.

0 Comments
Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!