How do I manually input a group of coordinates, then add them to a scatter plot?

3 ビュー (過去 30 日間)
Michael Krathwohl
Michael Krathwohl 2017 年 10 月 12 日
回答済み: Nicolas Schmit 2017 年 10 月 13 日
This is probably basic but I can't find it in the tutorials. I simply want to graph a scatter-plot on an xy coordinate plane. I have a group of random data points, like (0,2.4), (2,4.65), etc etc..
What is the most efficient way to input the data points, and then graph them... do I have to enter them all individually and then do a separate scatter(x,y) for every point?
As a secondary question, is there a way to edit, for example, color of the all data points, once they have already been plotted?
Thanks in advance.

回答 (1 件)

Nicolas Schmit
Nicolas Schmit 2017 年 10 月 13 日
Use the scatter() command to create a scatter plot. After the plot is created, you can change its aspect by changing the Axes Properties.

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by