필터 지우기
필터 지우기

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

채택된 답변

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))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by