hw 2 - a/ format long >>...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a/ format long >> logspace(10,0,5) ans = 1.0e+010 * Columns 1 through 4 1.000000000000000 0.003162277660168 0.000010000000000 0.000000031622777 Column 5 0.000000000100000 c/>> u=[-1 3 -2 4];v=[1 -3 5 -2];w=[2 1 -4 3];x=[-3 2 1 4] d/ >> A=[u',v',w',x'] A =-1 1 2 -3 3 -3 1 2-2 5 -4 1 4 -2 3 4 e/-2+(4+2)*rand([4,4]) ans = 0.0423 -0.4694 3.7557 -0.4550 1.5116 1.0357 1.2833 3.0443-0.6571 2.1945 -1.1683 -0.4743 2.5076 3.3454 -1.1042 2.8857 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 g/ C=A*B C = 6.7755 3.5394 -9.3862 7.0249-13.8843 -5.5096 12.7248 -5.3968 17.7356 6.2194 -0.1022 3.4791-12.2886 -2.4075 26.8244 2.4716 h/ D=A./B D = 1.8558 -2.0264 0.6700 10.5276 0.8390 -1.7686 0.6616 0.7864-20.0195 5.9543 -3.0809 0.3965-4.8755 -18.1889 0.8564 14.1505 i/ D(:,3)=x D = 1.8558 -2.0264 -3.0000 10.5276 0.8390 -1.7686 2.0000 0.7864-20.0195 5.9543 1.0000 0.3965-4.8755 -18.1889 4.0000 14.1505 j/ >> D(3,2)=B(2,4) D = 1.8558 -2.0264 -3.0000 10.5276 0.8390 -1.7686 2.0000 0.7864-20.0195 2.5432 1.0000 0.3965-4.8755 -18.1889 4.0000 14.1505 k/ E=reshape(D,2,8) E = 1.8558 -20.0195 -2.0264 2.5432 -3.0000 1.0000 10.5276 0.3965 0.8390 -4.8755 -1.7686 -18.1889 2.0000 4.0000 0.7864 14.150 k/ whos E Name Size Bytes Class Attributes E 2x8 128 double l/ y=B(4,:) y =-0.8204 0.1100 3.5032 0.2827 m/ c=A*u' c =-12-6 29 o/ save BradleyNguyen.txt ascii 2/ x=-4:0.75:4 x = Columns 1 through 8...
View Full Document

Page1 / 17

hw 2 - a/ format long >>...

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

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