Professional Documents
Culture Documents
n Nume
rica.
Integracio
n
Aspectos Teoricos e implementacio
Segundo Cuatrimestre de 2015
Introducci
on a Octave / Matlab.
Software: GNU Octave / Matlab.
1. Aritm
etica. Ingresar los siguientes comandos e interpretar el resultado:
2*3-1
3*2^4
3-2^4
8/2*4
(3*2)^4
3^4-3
f) y = linspace(0,2,11)
k) y*2+1
b) y = [1 5 6]
g) y = linspace(1,5,7);
l) y.^2
c) [x y]
h) y
m) y
d) 3:8
i) length(y)
n) y*y
e) x = 8:-1:0
j) y(3)
n
) y*y
linspace(0,2*pi,100)
y =
cos(x)
plot(x,y)
5. Graficar. (Sugerencia: consultar, help sqrt, help .^)
a) La funcion seno entre 2 y 2.
b) La funcion raz cuadrada entre 0 y 100.
c) La funcion y = 3x2 + 5 entre 5 y 5.
6. Matrices. Ingresar los siguientes comandos e interpretar el resultado:
a) g = [1 2 3 4; 5 6 7 8] f) h.*id
k) g(2,1)
b) 2 * g - 1
g) g*h
l) g(1,:)
c) h = [1 3; 4 7]
h) h*g
m) g(:,3)
d) id = [1 0; 0 1]
i) g
n) g(1,[3,4])
e) h*id
j) g.^2
o) g(:,[2,3])