Did I do anything wrong when I used the "second" function?
古いコメントを表示
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 件のコメント
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.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Dates and Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!