close all;
clear all;


x=[2 2]
s=[5 0]
xs=x*s';
ss=s*s';
Xs=(xs/ss)*s

plot_2d_axis(-6,6,-6,6);

orig = [0,0];
plot_2d_vector( orig,x,'x', 'linewidth',1);
plot_2d_vector( orig,s,'s', 'linewidth',1);
plot_2d_vector( orig,Xs,'X_s', 'linewidth',2);
plot_2d_vector( x,Xs,'', 'linewidth',1);

