Graphics Programs Reference
In-Depth Information
T = 0:0.01:1;
for j = 0:16
fill(4*cos(j*pi/8) + (1/2)*cos(2*pi*T), ...
4*sin(j*pi/8) + (1/2)*sin(2*pi*T), 'r');
axis equal; axis([-5 5 -5 5]);
M(j + 1) = getframe;
end
movie(M)
Problem 10
(a)
A1=[345;2-37;1-61];b=[2;-1;3];
format short; x = A1\b
x=
2.6196
-0.2283
-0.9891
A1*x
ans =
2.0000
-1.0000
3.0000
(b)
A2=[3-98;2-37;1-61];b=[2;-1;3];
x = A2\b
Warning: Matrix is close to singular or badly scaled.
Results may be inaccurate. RCOND = 4.189521e-018.
x=
-6.000
-1.333
1.000
 
Search WWH ::




Custom Search