Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
>> A=[1 2 3 4;
5 6 7 8;
6 -1 -3 0;
3 2 1 0]
A=
-1
-3
>> A(3,3)=3
A=
-1
>> A(2:3,2:3)=0
A=
>> A(:,2)=[]
A=
>> B=[4;3;1;0]
B=
4
3
1
0
>> C=[A B]
C=
>> t= C'
t=
>> t1=eye(2)
t1 =
>> t1=zeros(2)
t1 =
>> magic(3)
ans =
>> whos
Name
Size
Bytes Class
4x3
96 double
4x1
32 double
4x4
128 double
ans
t
3x3
4x4
t1
72 double
128 double
2x2
32 double
>> D=[2 -1 1;
1 2 1;
3 -1 -1]
D=
-1
-1
-1
>> det(D)
ans =
-13.0000
>> x=inv(D)*D1
Undefined function or variable 'D1'.
Attributes
D1 =
0
2
1
>> x=inv(D)*D1
x=
0.5385
0.8462
-0.2308
>> rref(c)
Undefined function or variable 'c'.
ans =
>> rref(C)
ans =
>> diary of
>> diary on
>> clear
>> syms li lf
>> fprintf('\t Grafica \n')
Grafica
>> dip('Ingrese el valor inferior = ')
Undefined function 'dip' for input arguments of type 'char'.
li =
[]
lf =
[]
>> x=li:0.2:lf;
>> y=x.^2
y=
>> plot(y,x)