How to get a line plot

조회 수: 4 (최근 30일)
B!nd
B!nd 2021년 11월 29일
댓글: B!nd 2021년 11월 29일
i need 3 lines in my graph. one of them is a straight line parallel to x axis at y=200 from x=25 to 45. im not able to get the line
x=[25,32,45]
y1= (20.*3.*1000)./300
plot(x,y1,Color='black',Marker='.')
axis([20 50 100 400])

채택된 답변

Chunru
Chunru 2021년 11월 29일
x=[25 45];
y=[200 200]
y = 1×2
200 200
plot(x,y,Color='black')
axis([20 50 100 400])
  댓글 수: 1
B!nd
B!nd 2021년 11월 29일
thanks!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by