make plot in matrix data
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/902855/image.png)
I have monthly data and would like to make plot annually
but my plot is weird like that
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/902860/image.jpeg)
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
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!