function yxplot(xn,yn,ti,x,y,c)
% function yxplot(xn,yn,ti,x,y,c)  plots y vs x, adds title and axis names
% Plots y vs x and adds a title and axis names.
% xn and yn are strings that give the names of the x and y variables.
% ti is a string that gives the title
% x and y are vector of data to be plotted.
% c color: 'y' for yellow, 'm' for magenta, 'c' for cyan, 'r' for red
%    'g' for green, 'b' for blue, 'w' for white, 'k' for black 
%Example: xy=[1 2 3 4 5;2 4 8 4 1];
%        yxplot('x','y','y vs x',xy(1,:),xy(2,:),'c')
plot(x,y,c)
title(ti)
xlabel(xn)
ylabel(yn)
