>> M=[5,1,4,7,8;5,5,6,8,6;5,6,7,8,9;1,2,3,4,5;7,8,9,5,6]
M=
K=
>> L= diag(K)
L=
5
5
7
4
6
>> G(1:2,:)
Undefined variable G.
>> M(1:2,:)
ans =
>> A=M(2:2:5,:)
A=
>> M=[1:5:30]
M=
11
16
21
26
>> tipox=class(x)
ans =
69 68 73 84 79 82 73 65 76 32 77 65 67 82 79
>> class(curso)
Undefined function or variable 'curso'.
>> curso='Matlab'
curso =
Matlab
>> class(curso)
ans =
char
>> ischar(curso)
ans =
>> class='MATLAB';
>> instituto='MATHS';
>> strcat(instituto,',',curso)
ans =
MATHS,Matlab
>> strvcat(instituto,',',curso)
ans =
MATHS
,
Matlab
distritos =
Lince
Los Olivos
Carabayllo
Comas
A=
>> int8(A)
ans =
Columns 1 through 18
69 83 67 85 69 76 65 32 83 85 80 69 82 73 79 82 32
80
Columns 19 through 36
79 76 73 84 69 67 78 73 67 65 32 68 69 32 67 72 73
77
Columns 37 through 42
66 79 82 65 90 79
C=
D=
>> strvcat(C,',',D)
ans =