フィルターのクリア

How to make a plot

1 回表示 (過去 30 日間)
Kostas
Kostas 2015 年 1 月 24 日
コメント済み: Image Analyst 2015 年 1 月 25 日
Hello i need your help to make a plot like the attached one. i have my data in separated vectors, i.e.
x y and z
Thank you in advance

回答 (2 件)

Star Strider
Star Strider 2015 年 1 月 24 日
See the documentation for the image function. It can probably do what you want.
Also see the list of related functions at the end of that page.
  2 件のコメント
Kostas
Kostas 2015 年 1 月 24 日
Thank you for your response Star Strider
Star Strider
Star Strider 2015 年 1 月 24 日
My pleasure!

サインインしてコメントする。


Image Analyst
Image Analyst 2015 年 1 月 24 日
What does x, y, and (especially) z represent? What happens if there is an x,y,z triplet that is not represented? Is x the column, y the row, and z the gray level, or are x and y more continuous, in which case you'll have to decide what digital resolution you want in the image to represent that continuum of x and y?
  2 件のコメント
Kostas
Kostas 2015 年 1 月 25 日
x is the year (x from 2000 to 2010), y is the day of the year (y -> 1 to 365 or 366 for leap years) and z is the measurement of the day (it is integer and when no value i have assigned it as NaN). So i want to "represent" the number of measurements for each day. The dataset i have looks like
2000 1 25
2000 2 21
2000 3 NaN
2000 4 8
. . .
. . .
I managed to make this plot, using meshgrid and contour, but i 'd prefer if i could have more "distinct" colors for each day.
Image Analyst
Image Analyst 2015 年 1 月 25 日
Then use scatter().

サインインしてコメントする。

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by