0% found this document useful (0 votes)
25 views2 pages

For For If End End End

The document defines several 4x4 matrices (A, B, C, D, E) and performs operations on them like extracting columns/rows, setting elements to zero, inverting, taking the determinant, eigenvalues, and matrix multiplication. It also defines some vectors (v, x) and concatenates them with the matrices.

Uploaded by

Andrés Lamán
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

For For If End End End

The document defines several 4x4 matrices (A, B, C, D, E) and performs operations on them like extracting columns/rows, setting elements to zero, inverting, taking the determinant, eigenvalues, and matrix multiplication. It also defines some vectors (v, x) and concatenates them with the matrices.

Uploaded by

Andrés Lamán
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

A=[sqrt(8),10,(7-(3*(-2)))^-1.

5,1;3/4,3*pi,3^-
1,2;pi,exp(1),3/2,3;1.8,abs(2+3i),9,5];
a=length(A);
B=zeros(4,4);
for j=1:a
for k=1:a
if mod(A(j,k),2)==0
B(j,k)=A(j,k);
end
end
end
C=zeros(4,4);
C(:,3)=A(:,3);
D(4,:)=A(4,:);
E=zeros(4,4);
E=A;
E(:,1)=0;
E(4,:)=0;
v=(A(3));
A(:,1)=D(:,1);
A(:,4)=[];
A=[sqrt(8),10,(7-(3*(-2)))^-1.5,1;3/4,3*pi,3^-
1,2;pi,exp(1),3/2,3;1.8,abs(2+3i),9,5];
a=length(A);
B=zeros(4,4);
for j=1:a
for k=1:a
if mod(A(j,k),2)==0
B(j,k)=A(j,k);
end
end
end

C=A(:,3);
D=A(4,:);
E=zeros(4,4);
E=A;
E(:,1)=0;
E(4,:)=0;
E(:,1)=[]; E(4,:)=[];
v=(A(3));
A(:,1)=D';
A(:,4)=[];
x=[1 2 3];
F=[x;A];
G=inv(E);
d=det(E);
y=eig(E);
H=E*E';
I=E.*E';
J=H+(5*eye(3,3));

You might also like