isbetween function not working with any 'intervalType'

3 ビュー (過去 30 日間)
Leeza
Leeza 2022 年 10 月 3 日
コメント済み: Leeza 2022 年 10 月 3 日
I'm attempting to use isbetween to get values on a specific day (using lower and upper variables), however, I realised that the isbetween function was returning a 1 for the first data point of the next day too (since I used addtodate to get the upper variable), which I don't need. I looked up the documentation for isbetween and found the 'intervalType' argument which might have solved my problems (using the 'openright' interval type), but it gave me an error because it was telling me that there were too many arguments being passed into isbetween. I looked inside the function itself and found that there is no 'intervalType' argument in there at all... Is this a version issue or should there be an 'intervalType' argument no matter what? I have the 2019b version.
Thanks in advance.

採用された回答

Steven Lord
Steven Lord 2022 年 10 月 3 日
From the Release Notes it appears the ability to specify an interval type was introduced in release R2021b.
  1 件のコメント
Leeza
Leeza 2022 年 10 月 3 日
Thanks for your help! Will get the later version then.

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by