??? Error using ==> plot Invalid first data argument
2 views (last 30 days)
Show older comments
filedir = dir('C:\Users\ValcourtA\Documents\WILMA\WILMA500Hz')
timerArray=[];
for cnt=1:5
battery=data(:,1)
timerArray=vertcat(timerArray,filedir(cnt).date)
plot(timerArray,Battery)
end
why do i get this error ??? Error using ==> plot Invalid first data argument
0 Comments
Answers (1)
Dishant Arora
on 13 May 2014
filedir(cnt).date is a character string. Use datenum
datenum(filedir(cnt).date)
See Also
Categories
Find more on Cell Arrays in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!