필터 지우기
필터 지우기

How can connect two point in plot graph?

조회 수: 5 (최근 30일)
x y
x y 2013년 12월 6일
댓글: sixwwwwww 2013년 12월 6일
Hy,
I would like to know how can I connect two point in cordinate table, how can I ploting only lines?
Is this possible take two point (without range like this x = 1:0.1:1000) ...only just take two point like (15,5) and matlab make line in plot graph?
something this I want to : http://i.imgur.com/dRy2sKv.png

채택된 답변

sixwwwwww
sixwwwwww 2013년 12월 6일
yes. see:
x = [0, 1];
y = [0, 5];
plot(x, y, '*-'), xlim([-1 2]), ylim([-1 6])
  댓글 수: 2
x y
x y 2013년 12월 6일
thank you for help :)
sixwwwwww
sixwwwwww 2013년 12월 6일
you are welcome

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by