HW#2_1st question

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

Info iconThis 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]
Background image of page 1

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

View Full DocumentRight 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
Background 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
Background image of page 3

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

View Full DocumentRight Arrow Icon
G. >> C=A*B C = -5.1588 -4.6636 6.6975 7.3786 11.9138
Background image of page 4
Background image of page 5

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

View Full DocumentRight Arrow Icon
Background image of page 6
Background 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

This note was uploaded on 01/30/2011 for the course PGE 323K taught by Professor Lake during the Spring '08 term at University of Texas.

Page1 / 7

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

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online