basically we always plot graph of certain function such as x = 0 : 1 : 10 y = sinx; plot(x,y,'-r^')
lets say given x = 2 y = 15 x = 3 y = 8 x = 8 y = 30 the point is random, how to plot this graph?

 채택된 답변

Danny Alvarez
Danny Alvarez 2015년 8월 5일

4 개 추천

x=[2,3,8]; y=[15,8,30]; plot(x.y)
or
plot(x,y,'o') for dots

댓글 수: 4

Odien
Odien 2015년 8월 5일
이동: DGM 2024년 3월 6일
after the graph is plot, how can we snip the following graph and paste it to mic.word?
Danny Alvarez
Danny Alvarez 2015년 8월 5일
이동: DGM 2024년 3월 6일
If you have windows, use the snipping tool! Or, you can save the figure by clicking the save icon.
Jorge Luis Dominguez Martinez
Jorge Luis Dominguez Martinez 2022년 6월 13일
이동: DGM 2024년 3월 6일
From the Graph window, you can go to File -> Save as
or click on Save Figure
and then select JPEG image (*jpg) as a type .
DGM
DGM 2024년 3월 6일
... and save it as a PNG, not a JPG. Never save plots as a JPG.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

제품

질문:

2015년 8월 5일

댓글:

DGM
2024년 3월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by