How to plot data T(3023x1 table) and I(3023x1 table)?
Show older comments
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)
Answers (1)
KSSV
on 6 Jan 2020
plot(t.1,i.1)
3 Comments
Luthfi Haritsah
on 6 Jan 2020
KSSV
on 6 Jan 2020
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
on 6 Jan 2020
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!