Not enough input arguments error
2 views (last 30 days)
Show older comments
Hi all; I am plotting data from excel file by using MATLAB these data are:
x-Axis = time (from excel)
y-Axis = power (from excel)
but I am getting this error while plotting:
Not enough input arguments.
my code is :
[num,T,vT] = xlsread('Excel.xlsx','Sheet1'); % read excel
x= datestr(num(:,1),('HH:MM')); % time column
y = num(:,4); % power column
plot(handles.axes8,x,y);
why I am getting this error ? and how to solve it ?? please please help and advice... thank you very much
3 Comments
Accepted Answer
More Answers (1)
Samer Husam
on 29 Aug 2012
3 Comments
Walter Roberson
on 29 Aug 2012
Your code in your original Question shows you passing part of "num" to datenum(), rather than passing part of "T" to datenum(). Have you tried with "T" ? Could you show an example string that you are passing to datenum() ?
See Also
Categories
Find more on Time Series Objects 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!