exist

Matlab Functions List


  • exist variable 返回 %variable% 对应整数, 若为 0 则无重名
  • exist('variable) 同上

对应整数表

IntegerMeaning
0name does not exist or cannot be found
1name is a variable in the Workspace
2name is a file with extension .m, .mlx, or .mlapp, or is file.ext which exists in the folder
3name is a MEX-file on your MATLAB search path
4name is a Simulink model or library file on your MATLAB search path
5name is a built-in function
6name is a P-code file on your MATLAB search path
7name is a folder
8name is a class