フィルターのクリア

How do I plot differing length (X,Y) vectors vs time?

2 ビュー (過去 30 日間)
Dean Ranmar
Dean Ranmar 2016 年 9 月 14 日
コメント済み: Star Strider 2016 年 9 月 15 日
At each point in time I receive a list of (x,y) pairs and the number of data points ((x,y) pairs) varies with time. I want to do a scatter plot-style figure of the x,y pairs versus time. If it helps, the x,y pairs are integers over a finite range of possible values (range(x) is not = range(y)).

採用された回答

Star Strider
Star Strider 2016 年 9 月 14 日
You probably have triplets (t,x,y). Use the scatter3 or plot3 functions. If you want to plot more than one (t,x,y) series on each plot, use the hold function.
  4 件のコメント
Dean Ranmar
Dean Ranmar 2016 年 9 月 15 日
Thanks again. Doing as you say and changing the color for each sample vector worked. I will post my/your solution in a couple of days in case anyone is interested. It's just a few lines of code and it yields very nice-looking plots.
Star Strider
Star Strider 2016 年 9 月 15 日
As always, my pleasure.
I’m interested! I’d like to see your code and the plot it produced.

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

その他の回答 (0 件)

カテゴリ

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