HW#2_1st question - 3.1020 3.8835-9.3373 2.9718 0.6460...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1. A. >> format long >> a=logspace(10,0,5) a = 1.0e+010 * Columns 1 through 4 1.00000000000000 0.00316227766017 0.00001000000000 0.00000003162278 Column 5 0.00000000010000 >> format short >> B. >> b=[-5:0.5:-2 10:1:14]
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
b = Columns 1 through 9 -5.0000 -4.5000 -4.0000 -3.5000 -3.0000 -2.5000 -2.0000 10.0000 11.0000 Columns 10 through 12 12.0000 13.0000 14.0000 C. >> u = [-1 3 -2 4]; >> v = [1 -3 5 -2]; >> w = [2 1 -4 3]; >> x = [-3 2 -1 5]; D. >> A=[u,v,w,x]; >> A=reshape(A,4,4)' A = -1 3 -2 4 1 -3 5 -2 2 1 -4 3
Image of page 2
-3 2 -1 5 >> E. B = 6*rand(4,4)-2 B = 3.7008 3.3478 2.9284 3.5309 -0.6132 2.5726 0.6682 2.4292 1.6411 0.7388 1.6926 -0.9424 0.9159 -1.8890 2.7516 0.4342 >> F. >> -4.5*ones(4,4) ans = -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000 -4.5000
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
G. >> C=A*B C = -5.1588 -4.6636 6.6975 7.3786 11.9138
Image of page 4
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3.1020 3.8835 -9.3373 2.9718 0.6460 8.0096 14.5633-9.3902 -15.0819 4.6166 -2.6206 H. >> D=A./B D =-0.2702 0.8961 -0.6830 1.1329-1.6309 -1.1661 7.4826 -0.8233 1.2187 1.3535 -2.3632 -3.1834-3.2755 -1.0588 -0.3634 11.5144 I. D(:,3)=x D =-0.2702 0.8961 -3.0000 1.1329-1.6309 -1.1661 2.0000 -0.8233 1.2187 1.3535 -1.0000 -3.1834-3.2755 -1.0588 5.0000 11.5144 J. >> D(3,2)=B(2,4) D =-0.2702 0.8961 -3.0000 1.1329-1.6309 -1.1661 2.0000 -0.8233 1.2187 2.4292 -1.0000 -3.1834-3.2755 -1.0588 5.0000 11.5144 K. >> E=reshape(D,2,8) E =-0.2702 1.2187 0.8961 2.4292 -3.0000 -1.0000 1.1329 -3.1834-1.6309 -3.2755 -1.1661 -1.0588 2.0000 5.0000 -0.8233 11.5144 L. >> size(E) ans = 2 8 M. >> y=B(4,:) y = 0.9159 -1.8890 2.7516 0.4342 >> N. >> c = A* u' c = 30-28 21 31 >> O. >> save kylewang.txt A c –ascii 2....
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern