I've been sitting like 3 hours using multiple codes in order to get this to work. This is the most I came up with:
function plot_grid(ax,bx,ay,by,nx,ny)
axis([ax bx ay by])
xi = 0:ax;
yi = 0:ay;
xf = bx;
yf = by;
nx = plot([xi;xf],[yi,yf]);
All this draws is a diagonal line. Help would be...