DOES ANYONE KNOW HOW CAN INSERT AND PLOT THIS DATA AS POINTS?

12 ビュー (過去 30 日間)
Pul
Pul 2021 年 7 月 21 日
コメント済み: Pul 2021 年 7 月 23 日
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!

採用された回答

Walter Roberson
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
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
Pul
Pul 2021 年 7 月 23 日
Thank you.

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by