How do I create multiple parallel lines
显示 更早的评论
How do I create parallel lines in a certain interval like in the picture? I am pretty sure I can use line() but I have not managed to understand how.

采纳的回答
更多回答(1 个)
Image Analyst
2018-9-15
If you're not fussy about the way the lines look, you can simply call
grid on;
Also, if you want the x and y axis in there at the right place, instead of outside the plotting box, you can do
ax = gca
ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin';
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
