??? Error using ==> plot Invalid first data argument
Mostrar comentarios más antiguos
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
Respuestas (1)
Dishant Arora
el 13 de Mayo de 2014
filedir(cnt).date is a character string. Use datenum
datenum(filedir(cnt).date)
3 comentarios
Dishant Arora
el 13 de Mayo de 2014
make use of dateformnum , as a parameter to datetick
datetick('x' , 0 , 'keepticks') % after you plot.
for more information see the documentation of datetick.
Mini Me
el 13 de Mayo de 2014
Categorías
Más información sobre Dates and Time en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!