フィルターのクリア

make plot in matrix data

1 回表示 (過去 30 日間)
il147
il147 2022 年 2 月 22 日
コメント済み: KSSV 2022 年 2 月 22 日
I have monthly data and would like to make plot annually
but my plot is weird like that
this is my code and I combine data and year
I'd like to make a plot with year (x)and data(y)
I have short english and matlab so sorry about awkward explain
Thanks
date=readtable(name3{2},'Range','A13:A23')
data=readtable(name3{2},'Range','B13:M23')
data=data{:,:}
date=date{:,:}
A=[date,data]
x=A(:,1)
y=A(:,2:end)
plot(x,y)
->monthly, ↓annual

採用された回答

KSSV
KSSV 2022 年 2 月 22 日
Try:
plot(x',y')
  4 件のコメント
il147
il147 2022 年 2 月 22 日
Does T mean data or date?
KSSV
KSSV 2022 年 2 月 22 日
T is a table.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by