for i = 0.25 : 0.25 : 0.75
line([i i],[0 1],'LineStyle','-','Color','black') % To draw vertical lines
line([0,1],[i i],'LineStyle','-','Color','black') % To draw horizontal lines
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!