フィルターのクリア

Seconds function in matlab2013

1 回表示 (過去 30 日間)
nashat sawai
nashat sawai 2020 年 7 月 13 日
コメント済み: nashat sawai 2020 年 7 月 16 日
I have matlab 2013b, I try to execute some of matlab scripts which are originally developed in newer versions 2014b, Functions "seconds" is induced 2014, and not existing in 2013, what is the the alternative function
  1 件のコメント
madhan ravi
madhan ravi 2020 年 7 月 13 日
An excerpt?

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2020 年 7 月 13 日
There is no alternative. seconds() creates a duration datatype, but that datatype did not exist in your release.
If you switched over to using serial date numbers, then you could define
seconds = @(x) x/(24*60*60);
but you would only be able to use it in limited circumstances, such as
t = now;
datestr(t)
datestr(t + seconds(180))
  1 件のコメント
nashat sawai
nashat sawai 2020 年 7 月 16 日
It works 👍

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by