% 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 arrow3([0,0,0],[-1,-2,2],'blue'); arrow3([0,0,0],[3,3,4],'black');