フィルターのクリア

Plotting graph with given points

127 ビュー (過去 30 日間)
Odien
Odien 2015 年 8 月 5 日
コメント済み: DGM 2024 年 3 月 6 日
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 日
x=[2,3,8]; y=[15,8,30]; plot(x.y)
or
plot(x,y,'o') for dots
  4 件のコメント
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 件)

カテゴリ

Help Center および File Exchange2-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