Contents
Ejemplo 1
g = 9.8; d = 2; th = pi/3; % Input Dc = d/2*(1-cos(th)); Qnum= 2^(3/2)*Dc^(5/2)*sqrt(g)*(th-0.5*sin(2*th))^(3/2); Qden= 8*sqrt(sin(th))*(1-cos(th))^(5/2); Q = Qnum/Qden % m^3/s
Q = 0.5725
Ejercicio 2
A = [ 4 -2 -10; 2 10 -12; -4 -6 16] B = [-10; 32; -16] X = A\B
A = 4 -2 -10 2 10 -12 -4 -6 16 B = -10 32 -16 X = 2.0000 4.0000 1.0000
Ejercicio 4
A = [ 0 1 -1; -6 -11 6; -6 -11 5] [V,D]=eig(A)
A = 0 1 -1 -6 -11 6 -6 -11 5 V = 0.7071 -0.2182 -0.0921 0.0000 -0.4364 -0.5523 0.7071 -0.8729 -0.8285 D = -1.0000 0 0 0 -2.0000 0 0 0 -3.0000
Ejemplo plot
grafica del seno
x=0:0.1:2*pi; y=sin(x); plot (x,y)