DOES ANYONE KNOW HOW CAN INSERT AND PLOT THIS DATA AS POINTS?
1 次查看(过去 30 天)
显示 更早的评论
Hello everyone,
when I go to plot the column 11 of the table "Data" any point appears in my graph.
Data of column 11 should be related to their years as in the table.
plot(T.Year(:,1),[NEW, T.Var4(:,1) DATA.SMB_mp_mm(:,1)],'g');
Could anyone help me kindly?
Thank you!
0 个评论
采纳的回答
Walter Roberson
2021-7-21
You need
plot(T.Year(:,1),[NEW, T.Var4(:,1) DATIMARannuali.SMB_mp_mm(:,1)],'g');
However, your other variables have 7721 rows, but SMB_mp_mm only has 40 rows, so it is not clear what you would want to plot.
3 个评论
Walter Roberson
2021-7-22
Change to
plot(T.Year(:,1),[NEW, T.Var4(:,1)], 'g', datetime(DATIMARannuali.Year,1,1), DATIMARannuali.SMB_mp_mm,'k-*');
hold off
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!