How to plot data T(3023x1 table) and I(3023x1 table)?

1 回表示 (過去 30 日間)
Luthfi Haritsah
Luthfi Haritsah 2020 年 1 月 6 日
コメント済み: Luthfi Haritsah 2020 年 1 月 6 日
I have data T(3023x1 table) for x axis and I(3023x1 table) for y axis.
the data i get from excel
How to plot the T and I variable to get graph?
I'm using this code and showing
Error using tabular/plot
Too many input arguments.
Error in final (line 4)
plot(t,i)
t = readtable('matlabdata.xlsx','Range','M5:M3028');
i = readtable('matlabdata.xlsx','Range','N5:N3028');
plot(t,i)

回答 (1 件)

KSSV
KSSV 2020 年 1 月 6 日
plot(t.1,i.1)
  3 件のコメント
KSSV
KSSV 2020 年 1 月 6 日
t = table2cell(t) ;
i = table2cell(i) ;
plot(t,i) ;
YOu can access your table with T.var or T.1, T.2 etc. Read about table.
Luthfi Haritsah
Luthfi Haritsah 2020 年 1 月 6 日
still showing this.
Error using plot
Not enough input arguments.
Error in final (line 6)
plot(t,i) ;

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

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by