I have a question about plot. Plesase help me.
1 view (last 30 days)
Show older comments
Nguyen Trong Nhan
on 20 Dec 2013
Commented: Nguyen Trong Nhan
on 20 Dec 2013
I want to draw a line x = a perpendicular to the x axis in matlab. How do I do ? (with a = constant) value y from 3 to 5.
0 Comments
Accepted Answer
Azzi Abdelmalek
on 20 Dec 2013
Edited: Azzi Abdelmalek
on 20 Dec 2013
s=get(gca,'ylim')
hold on;
plot([a a],s)
2 Comments
More Answers (1)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!