a) syms x y z z=x+4*y z = fsurf(z) hold on z=2-9*x-1/2*y z = fsurf(z) hold on z=-3-x z = fsurf(z) hold on A=[1 4 -1;18 1 2;-1 0 -1] A = 3×3 1 18 -1 4 1 0 -1 2 -1 b=[0;4;3] b = 3×1 0 4 3 rref([A b]) ans = 3×4 1.0000 0 0 0 1.0000 0 0 0 1.0000 0.6935 -1.0968 -3.6935 plot3(0.6935,-1.0968,-3.6935,'r.','MarkerSize',100) 1 b) t=-1:1; xx=1+2*t; yy=2-t; zz=3*t; figure plot3(xx,yy,zz) q=3/2+2*t; w=-t; e=2+2*t; hold on plot3(q,w,e) r=2+t; t=1-3*t; y=2-t; hold on plot3(r,t,y) hold on grid on 2 Suorat eivät leikkaa toisiaan samassa pisteessä 3