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일
  댓글 수: 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