% this requires a special function created by Shawn Arseneau % see http://www.mathworks.com/matlabcentral/fileexchange/12274 arrow3([0,0,0], [1,0,0],'yellow'); arrow3([0,0,0], [0,1,0],'yellow'); arrow3([0,0,0], [0,0,1],'magenta'); % this plots the i,j,k, vectors plot3([-2,-2,5], [-2,5,-2], [5,-2,-2],'*w') % this sets the window of specified size a = [1,2,3]; b = [ 4,5,6]; o = [0,0,0]; arrow3(o,a,'red'); arrow3(o,b,'green'); axb = cross(a,b); arrow3(o,axb,'black');