Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ingreso de VECTOR[1 2 3 4 ]
n=
i=
i=
i=
i=
Factorial
close all clear all clc n=input('ingrese el numero'), fact=1; for i=1:n fact=fact*i; end fact
ingrese el numero3
n=
fact =
Ejercicio de la matriz
close all clear all
clc filas=input('ingrese el numero de filas ') columnas=input('ingrese el numero de columnas ') for i=1:filas for j=1:columnas a(i,j)=input('ingrese el elemento'); end end a
filas =
columnas =
ingrese el elemento1 ingrese el elemento2 ingrese el elemento3 ingrese el elemento4 ingrese el elemento5 ingrese el elemento6
a=
1 4
2 5
3 6
filas =
columnas =
a=
1 9
3 7
6 8
Serie de Taylor
close all clear all clc x=input('ingrese el valor del exponente de e ') m=input('ingrese el numero de sumatorias ') fact=1; sum=1; for i=1:m fact=fact*i; g=(x^i/fact); sum=sum+g; end sum
x=
m=
sum =
6.3333