CVAR checks the names of
- variable(s) in the current workspace
- variable(s) not yet defined
for conflicts with known
- ML stock functions
- built-in functions
- user defined functions
cvar; % check current variables in the callers workspace...
cvar a b pi; % check validity of input...
see
>> help cvar;
and the screenshot for information and examples for this rather self-explanatory snippet
引用
us (2025). cvar: a pedestrian variable name checker (https://www.mathworks.com/matlabcentral/fileexchange/27797-cvar-a-pedestrian-variable-name-checker), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2007b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- MATLAB > Programming > Functions > Variables >
Help Center および MATLAB Answers で Variables についてさらに検索
タグ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!