ELEC3114_Lab1.m - %Prelab exercise1 A =[0 0 0 0 0 0 0 0 0 0 5 4 3 2 1 A(2 =[1 3 6 2 9 B =[1:5-1-1-5 1:5-1-1-5 1:5%prelab exercsie2 n = 4 C = sparse(n,n

# ELEC3114_Lab1.m - %Prelab exercise1 A =[0 0 0 0 0 0 0 0 0 0...

• Lab Report
• 1

This preview shows page 1 out of 1 page.

%Prelab exercise1 A = [0 0 0 0 0; 0 0 0 0 0; 5 4 3 2 1]; A(2, :) = [1 3 6 2 9]; B = [1:5; -1:-1:-5; 1:5; -1:-1:-5; 1:5]; %prelab exercsie2 n = 4; C = sparse(n,n); d1 = [2 2 2 2 2]; d2 = [-1 -1 -1 -1]; C = diag(d1) + diag(d2,1) + diag(d2,-1); full(C); %prelab exercise3 invertB = inv(B); traceB = trace(B);

#### You've reached the end of your free preview.

Want to read the whole page?

Unformatted text preview: determinantB = det(B); %lab exercise1 A = magic(5); b = ones(5,1); x = A\b; %how to obtain the numerical solution of x? %Assessment exercise 1 m = sum(A(1, :); %obtain the sum of the row of matirx A which is 65 [V, D] = eig(A); %compare m with the eigenvalues....
View Full Document

• One '14

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern