function plot3prj(x,y,z,L)
% plots x,y,z arrays in space with projections onto
% far axis planes for default view angle
%
% plot3prj(x,y,z,L)   
%  L is the optional axis L 

if nargin==3
plot3(x,y,z,'g-')
L = axis;
else
% use input L
plot3(x,y,z,'g-')
axis(L)
end

grid

xw = ones(length(x),1)*L(2);
yw = ones(length(x),1)*L(4);
zw = ones(length(x),1)*L(5);
hold on
plot3(xw,y,z,'y--')
plot3(x,yw,z,'y--')
plot3(x,y,zw,'y--')

hold off





