Draw a line
31 次查看(过去 30 天)
显示 更早的评论
I'm new to Matlab, I wanna draw a simple line x=4, or y=9. Someone kindly help me?
0 个评论
采纳的回答
Matt Fig
2011-6-5
line([4 4],[0 10],'color','b') % Blue line from (4,0) to (4,10)
line([0 10],[9 9],'color','r') % Red line from (0,9) to (10,9)
axis([0 10 0 10]) % Set the axis limits
You can do the same thing with the PLOT command.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!