clc;
clear;
x=-10:0.1:10;
y=(1/sqrt(2*pi)) * exp(-(x.^2)/2);
plot(x,y)
index = find(x==3);
f3 = y(index);
fprintf('f(3) = %d n', f3)
clc;
clear;
x=-10:0.1:10;
y=normpdf(x,0,1);
plot(x,y)
index = find(x==3);
f3 = y(index);
fprintf('f(3) = %d n', f3)
clc;
clear;
x=-10:0.1:10;
y=(1/sqrt(2*pi)) * exp(-(x.^2)/2);
plot(x,y)
index = find(x==3);
f3 = y(index);
fprintf('f(3) = %d n', f3)
clc;
clear;
x=-10:0.1:10;
y=normpdf(x,0,1);
plot(x,y)
index = find(x==3);
f3 = y(index);
fprintf('f(3) = %d n', f3)