Multiple density function with changing parameters plot in same graph

조회 수: 3 (최근 30일)
Sandipan
Sandipan 2017년 6월 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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by