Plotting Multivariate time series

1 回表示 (過去 30 日間)
M. M.  Farhad
M. M. Farhad 2017 年 1 月 10 日
コメント済み: Star Strider 2017 年 1 月 10 日
I am trying to plot several bivariate time series having the same set of variables. To be clear I am trying to plot 5 time series each having the same variables ,say A and B. I want my plot to show different shapes for variables A and B, say square for variable A in each series and triangle for variable B. And each of the series will b expressed by different colors.

採用された回答

Star Strider
Star Strider 2017 年 1 月 10 日
See if this does what you want:
t = 1:10;
A = rand(1,length(t));
B = rand(1,length(t))+1;
figure(1)
plot(t, A, '-sg', 'MarkerFaceColor','g')
hold on
plot(t, B, '-dr', 'MarkerFaceColor','r')
hold off
grid
See the documentation for the plot function for details and more information.
  2 件のコメント
M. M.  Farhad
M. M. Farhad 2017 年 1 月 10 日
Thanks, that really helped.
Star Strider
Star Strider 2017 年 1 月 10 日
My pleasure.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by