Did I do anything wrong when I used the "second" function?
Ältere Kommentare anzeigen
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 Kommentare
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Dates and Time finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!