Did I do anything wrong when I used the "second" function?
Mostrar comentarios más antiguos
I have the date data.
I'm using a program created by a previous person.
However, the following problems arise.
CurrentTime = datenum("2022-02-04 15:23:26");
INPUTDATA.SS = second(CurrentTime);
Check for incorrect argument data type or missing argument in call to function 'second'.
I have to keep using this, but I want to know what's wrong.
2 comentarios
What does
which second
show?
@KSSV: simply showing the first result is not sufficient to determine which overloaded function will be called for a specific input class, for that you need to use the -all flag:
which second -all
Then we can clearly see that the remaining functions are really methods of specific classes (not double). If the user does not have the financial toolbox then none of the remaining class methods accept a DOUBLE input.
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!