Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
clc
%EJERCICIO 29
x=0:0.1:5;
y=(x/1).^2;
plot(x,y), hold on
%EJERCICIO 30
x2=-5:0.1:5;
y2=exp(-(x2/1).^2);
%plot(x2,y2)
clear
clc
%EJERCICIO 32
% Producir 500 numeros aleatorios entre
-100 y 100
a=-100;b=100;
x=a+(b-a)*rand(1,500);
m=(a+b)/2; % media
s=30; % desviacion standar
clear p1=-.5*((x-m)/s).^2;
clc p2=(s*sqrt(2*pi));
y=exp(p1)./p2
%EJERCICIO 31 B
x=0:0.1:10;
y=sin(x/1); plot(x,y,'.')
plot(x,y), grid on,'r', hold on
x2=0:0.1:10;
y2=cos(x2);
plot(x2,y2), grid on,'g', hold on