Why do I get error 'incorrect argument data type' when using "datetick" function for plots with "duration" datatype?
Mostrar comentarios más antiguos
I am plotting some values against "duration" datatype. When I try to use "datetick" function to change format of duration values, it throws me an error.
>> t = 0:seconds(30):minutes(3);
>> y = rand(1,7);
>> plot(t,y)
>> datetick('x','mm:ss.FFF')
Check for missing argument or incorrect argument data type in call to function 'log10'.
Error in dateTickPicker (line 71)
yearDelta = 10.^(max(0,round(log10(xmax-xmin)-3)))* ...
Error in datetick>bestscale (line 307)
[labels,format] = dateTickPicker(axh,[xmin,xmax],dateform,dateChoice,axVal);
Error in datetick (line 260)
ticks = bestscale(axh,ax,vmin,vmax,dateform,dateChoice);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Dates and Time en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!