dannG
Computer
- Mar 15, 2005
- 2
Hy
This are my .m files. It draws the normal curve.
The problem: I need to shade area under the curve in interval -3:3. I don't know how. Pls help.
Lab.m
Z_func.m
Thanks
dan
This are my .m files. It draws the normal curve.
The problem: I need to shade area under the curve in interval -3:3. I don't know how. Pls help.
Lab.m
Code:
disp('Introduceti valoarea minima pe care doriti sa o reprezentati')
%vi=input('val minima:')
vi=-4
disp('Introduceti valoarea maxima pe care doriti sa o reprezentati')
%vf=input('val maxima:')
vf=4
fplot('Z_func', [vi vf])
title('Reprezentarea grafica a functiei normale')
Z_func.m
Code:
function [R]= Z_func(XX)
R=(1/sqrt(2*pi))*exp(-(XX^2)/2);
Thanks
dan