problem about plot 'x =2'

I have 2 question about plot
One . I want to draw a plot 'X = 2' just straight line like picture
Two .And I want to use fullcrosshair mouse style but I realized it can't use anymore in R2015a So have any function or know about similar mouse style Plz tell me ,,,

댓글 수: 4

Image Analyst
Image Analyst 2016년 4월 1일
I don't understand "fullcrosshair mouse style". What is that? Don't you just want the plot exactly as you've shown it? There is no crosshairs or cursor on that plot.
pty0220
pty0220 2016년 4월 1일
like this !! fullcrosshair
Image Analyst
Image Analyst 2016년 4월 1일
ginput() will give those, and they move with the mouse. If you want non-moving, static lines, use the line() function.

답변 (1개)

Julian Hapke
Julian Hapke 2016년 4월 4일

0 개 추천

for Q1:
figure;plot([2 2],[-1000 1000],'r')

이 질문은 마감되었습니다.

질문:

2016년 4월 1일

마감:

2021년 8월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by