Advertisement
Sri27119

normal different sigma

May 19th, 2024
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.30 KB | None | 0 0
  1. x = -10:0.1:10;
  2. mu = 3;
  3. sigma1 = 2;
  4. sigma2 = 3;
  5. sigma3 = 1;
  6.  
  7. y1 = normpdf(x,mu,sigma1);
  8. y2 = normpdf(x,mu,sigma2);
  9. y3 = normpdf(x,mu,sigma3);
  10.  
  11. plot(x,y1,'r');
  12. hold on;
  13. plot(x,y2,'g');
  14. plot(x,y3,'b');
  15. title('NORMAL DISTRIBUTION CURVE FOR DIFFERENT SIGMA');
  16. legend('sigma=2','sigma=3','sigma=1');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement