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

1 次查看(过去 30 天)
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
  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 CenterFile Exchange 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by