function plotaxes(xyrange)
% function plotaxes(xyrange)
%
% input: xyrange = [xmin xmax ymin ymax]
%
% output: plots coordinate axes with range from xmin to xmax for x-axis
%                                and range from ymin to ymax for y-axis
%                                including origin
%
xyrange=xyrange(:);
xmin=xyrange(1);
xmax=xyrange(2);
ymin=xyrange(3);
ymax=xyrange(4);

xmin=min(min(xmin,xmax),0);
xmax=max(max(xmin,xmax),0);
ymin=min(min(ymin,ymax),0);
ymax=max(max(ymin,ymax),0);


figure
plot([xmin xmax],[0 0]);

hold on

plot([0 0], [ymin ymax])




