Clear Filters
Clear Filters

make plot in matrix data

1 view (last 30 days)
il147
il147 on 22 Feb 2022
Commented: KSSV on 22 Feb 2022
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

Accepted Answer

KSSV
KSSV on 22 Feb 2022
Try:
plot(x',y')
  4 Comments
il147
il147 on 22 Feb 2022
Does T mean data or date?
KSSV
KSSV on 22 Feb 2022
T is a table.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!