x = (0:0.02:10); y = lognpdf(x,0,10); plot(x,y); grid; xlabel('x'); ylabel('p') hold on x1 = (0:0.02:10); y1 = normpdf(x1,0,1); plot(x1,y1); grid; xlabel('x'); ylabel('p') hold off