Sei sulla pagina 1di 9

>> diary on

Error using diary


diary: Cannot open file: permission denied.

>> 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;]

D1 =

0
2
1

>> x=inv(D)*D1

x=

0.5385
0.8462
-0.2308

>> rref(c)
Undefined function or variable 'c'.

Did you mean:


>> rref(C)

ans =

>> rref(C)

ans =

>> diary of
>> diary on

>> clear all


>> x= -2:0.2:2;
>> y=x.^2;
>> plot(y,x)
>> title('Grafica')
>> xlabel('eje x')
>> ylabel('eje y') gr

>> clear

>> syms li lf
>> fprintf('\t Grafica \n')
Grafica
>> dip('Ingrese el valor inferior = ')
Undefined function 'dip' for input arguments of type 'char'.

Did you mean:


>> disp('Ingrese el valor inferior = ')
Ingrese el valor inferior =
>> li=input('ingrese el valor inf')
ingrese el valor inf

li =

[]

>> lf=input['ingrese el valor inferior']


lf=input['ingrese el valor inferior']
|
Error: Unbalanced or unexpected parenthesis or bracket.

>> lf=input('Ingrese el valor final']


lf=input('Ingrese el valor final']
|
Error: Unbalanced or unexpected parenthesis or bracket.

>> lf=input('Ingrese el valor final')


Ingrese el valor final

lf =

[]

>> x=li:0.2:lf;
>> y=x.^2

y=

Empty matrix: 1-by-0

>> plot(y,x)

Potrebbero piacerti anche