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?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by