Documentos de Académico
Documentos de Profesional
Documentos de Cultura
ans =
03-Apr-2019
A =
1.0472 0.7854
0 6.2832
find(A)
ans =
1
3
4
reshape(A,1,4)
ans =
rot90(A)
ans =
0.7854 6.2832
1.0472 0
rot90(A,3)
ans =
0 1.0472
6.2832 0.7854
flipud(A)
ans =
0 6.2832
1.0472 0.7854
fliplr(A)
ans =
0.7854 1.0472
6.2832 0
expm(A)
ans =
2.8497 79.8963
0 535.4917
logm(A)
ans =
0.0461 0.2688
0 1.8379
SQRT(A)
{ Undefined function 'SQRT' for input arguments of type 'double'.
}
sqrt(A)
ans =
1.0233 0.8862
0 2.5066
fun(A,@sind)
{ Undefined function or variable 'fun'.
}
funm(A,@sin)
ans =
0.8660 -0.1299
0 -0.0000
a =
mesa
p='mama'
p =
mama
a+b
{ Undefined function or variable 'b'.
}
a+p
ans =
ans =
setstr(ans)
ans =
mesa
a+b
ans =
abs('a')-abs('A')
ans =
32
setstr(a-32)
ans =
MESA
disp(a)
mesa
disp('todo lo escrito aqui aparece en pantalla')
todo lo escrito aqui aparece en pantalla
clc
A=ones(2,3)
A =
1 1 1
1 1 1
A=ZEROS(2,3)
{ Undefined function 'ZEROS' for input arguments of type 'double'.
}
A=zeros(2,3)
A =
0 0 0
0 0 0
cat(1,A,B)
{ Undefined function or variable 'B'.
}
B=zeros(2,3)
B =
0 0 0
0 0 0
cat(1,A,B)
ans =
0 0 0
0 0 0
0 0 0
0 0 0
A=ones(2,3)
A =
1 1 1
1 1 1
cat(1,A,B)
ans =
1 1 1
1 1 1
0 0 0
0 0 0
ans(:,:,2)=
ans(:,:,2)=
ans =
1 1 1 0 0 0
1 1 1 0 0 0
ans(:,:,2)=
ans(:,:,2)=
ans(:,:,1) =
1 1 1
1 1 1
ans(:,:,2) =
0 0 0
0 0 0
estudiante =
nombre: 'Pablo'
estudiante =
nombre: 'Pablo'
apellido1: 'Vaca'
estudiante.apellido2='Rodriguez'
estudiante =
nombre: 'Pablo'
apellido1: 'Vaca'
apellido2: 'Rodriguez'
estudiante.peso='84'
estudiante =
nombre: 'Pablo'
apellido1: 'Vaca'
apellido2: 'Rodriguez'
peso: '84'
ciudadano(1)=struct('name','Sebastian','lastname1','Martinez','lastname2'
,'Cordoba','age',26)
ciudadano =
name: 'Sebastian'
lastname1: 'Martinez'
lastname2: 'Cordoba'
age: 26
ciudadano(2)=struct('name','Luis','lastname1','Arcos','lastname2','Rivera
','age',24)
ciudadano =
name
lastname1
lastname2
age
fieldnames(ciudadano)
ans =
'name'
'lastname1'
'lastname2'
'age'
fieldnames(estudiante)
ans =
'nombre'
'apellido1'
'apellido2'
'peso'
ans =
isfield(ciudadano,'peso')
ans =
isstruct(estudiante)
ans =
ans =
name
lastname2
age
cel =
[1x3 double]
cel{2}='universidad militar'
cel =
cel{3}=ones(3,2)
cel =
cel{4}=-exp(1)
cel =
celldisp(cel)
cel{1} =
0 1 2
cel{2} =
universidad militar
cel{3} =
1 1
1 1
1 1
cel{4} =
-2.7183
cellplot(cel)
k={[1 2 3 4],'fuerzas armadas',eye(5),pi}
k =
k{1} =
1 2 3 4
k{2} =
fuerzas armadas
k{3} =
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1
k{4} =
3.1416
cellplot(k)
clc
cell(4,5)
ans =
[] [] [] [] []
[] [] [] [] []
[] [] [] [] []
[] [] [] [] []
A =
1 1 1
1 1 1
num2cell(A)
ans =
iscell(cel)
ans =
iscell(k)
ans =
1
x=1:7
x =
1 2 3 4 5 6 7
y=x+3
y =
4 5 6 7 8 9 10
p=x<6
p =
1 1 1 1 1 0 0
u=x==y
u =
0 0 0 0 0 0 0
t=x~=y
t =
1 1 1 1 1 1 1
w=(x>y)&(y>5)
w =
0 0 0 0 0 0 0
w=(x>y)&(y>-6)
w =
0 0 0 0 0 0 0
w=(x<y)&(y>-6)
w =
1 1 1 1 1 1 1
w=(x<y)|(y>-6)
w =
1 1 1 1 1 1 1
c =
c =
Inf NaN 15 25 -8 0
isinf(c)
ans =
1 0 0 0 0 0
isnan(c)
ans =
0 1 0 0 0 0
isfinite(c)
ans =
0 0 1 1 1 1
exist('c')
ans =
x =
2 4 5
y=[7 3 1 4]
y =
7 3 1 4
roots(x)
ans =
-1.0000 + 1.2247i
-1.0000 - 1.2247i
poli(ans)
{ Undefined function or variable 'poli'.
}
poly(ans)
ans =
conv(x,y)
ans =
14 34 49 27 21 20
ans =
deconv(y,x)
ans =
3.5000 -5.5000
x =
2 4 5
polyder(y)
ans =
21 6 1
70 136 147 54 21
ans =
959
ans =
15 15 15
15 15 15
a =
mesa
A =
1 1 1
1 1 1
CLC
{ Undefined function or variable 'CLC'.
}
clc
syms x
syms y
syms z
diff('cos(9*x)')
ans =
diff(cos(9*x))
ans =
-9*sin(9*x)
ans =
cos(9*x)*exp(y)
diff(cos(9*x)*exp(y),'x')
ans =
-9*sin(9*x)*exp(y)
diff(cos(9*x)*exp(y),'z')
ans =
%derivadas parciales %
diff(cos(9*x),'t')
ans =
syms t
diff(cos(9*x),'t')
ans =
diff(cos(9*t),'t')
ans =
-9*sin(9*t)
feval(cos(9*x),pi)
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('fev
al')" style="font-weight:bold">feval</a>
Argument must contain a string or function_handle.
}
feval(cos(9*x),'pi')
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('fev
al')" style="font-weight:bold">feval</a>
Argument must contain a string or function_handle.
}
feval(cos,'pi')
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('cos
')" style="font-weight:bold">cos</a>
Not enough input arguments.
}
feval('cos','pi')
{ Error using <a
href="matlab:matlab.internal.language.introspective.errorDocCallback('fev
al')" style="font-weight:bold">feval</a>
Undefined function 'cos' for input arguments of type 'char'.
}
feval('cos',pi)
ans =
-1
ans =
%EVALUA LA MATRIZ A%
feval('cos',pi)
ans =
-1
feval('cos',x)
ans =
cos(x)
k=[1,3,5,7]
k =
1 3 5 7
feval('cos',k)
ans =
feval('exp',k)
ans =
1.0e+03 *
clc
diary off