matlab-validoozy

バージョン 1.0.2 (18.3 KB) 作成者: Andrew Janke
Additional validator functions for Matlab
ダウンロード: 4
更新 2022/9/11

Validoozy for Matlab
====================

In R2017a, Matlab introduced "mustBe*()" validator functions, for doing declarative-ish constraints on properties and function arguments. Validoozy provides additional validator functions in this style.

The Mcode/extend directory provides new validator functions that Matlab doesn't provide, but I've found useful in my coding.

The Mcode/compat directory provides re-implementations of the Matlab R2017a validator functions for use in older versions of Matlab.

To use Validoozy, copy it to somewhere on your hard drive, and run the `Mcode/load_validoozy` function in Matlab. That will add the required directories to your Matlab path.

The Validoozy project lives at https://github.com/apjanke/matlab-validoozy. Bug reports and feature requests are welcome.

Functions
---------

Validoozy provides the following functions:

extend (new functions):
makeItBeA(x, type)
mustBeA(x, type)
mustBeCellstr(x)
mustBeCharvec(x)
mustBeSameSize(a, b)
mustBeScalar(x)
mustBeScalarLogical(x)
mustBeVector(x)
size2str(sz)

compat:
mustBeFinite(x)
mustBeInteger(x)
mustBeMember(x, valid)
mustBeNonempty(x)
mustBeNumeric(x)
mustBeReal(x)

引用

Andrew Janke (2024). matlab-validoozy (https://github.com/janklab/matlab-validoozy), GitHub. 取得済み .

MATLAB リリースの互換性
作成: R2016b
R2014a 以降のリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersArgument Definitions についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!

GitHub の既定のブランチを使用するバージョンはダウンロードできません

バージョン 公開済み リリース ノート
1.0.2

Just fix a couple typos in documentation

1.0.1

Just an update to the File Exchange description text

1.0.0

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。