How to plot multiple matrices?

44 ビュー (過去 30 日間)
Abigail Felch
Abigail Felch 2020 年 9 月 18 日
コメント済み: Abigail Felch 2020 年 9 月 18 日
I have three single row matrices that i want to plot against their position, x=(1:1:6) on the same graph.
These are the matrices i want to plot:
y1 =
308.0035 301.1535 301.0850 296.2900 293.5500 273.0000
y2 =
313.8800 305.8800 305.8000 300.2000 297.0000 273.0000
y3 =
325.0035 318.1535 318.0850 313.2900 310.5500 290.0000
So how do i get these values to plot together?
Thanks in advance.

回答 (1 件)

madhan ravi
madhan ravi 2020 年 9 月 18 日
編集済み: madhan ravi 2020 年 9 月 18 日
Y = [y1(:), y2(:), y3(:)];
plot(Y)
  1 件のコメント
Abigail Felch
Abigail Felch 2020 年 9 月 18 日
thank you, that will work for what i need. :)

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

カテゴリ

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