- 0 — name does not exist or cannot be found for other reasons. For example, if name exists in a restricted folder to which MATLAB® does not have access, exist returns 0.
- 1 — name is a variable in the workspace.
- 2 — name is a file with extension .m, .mlx, or .mlapp, or name is the name of a file with a non-registered file extension (.mat, .fig, .txt).
- 3 — name is a MEX-file on your MATLAB search path.
- 4 — name is a loaded Simulink® model or a Simulink model or library file on your MATLAB search path.
- 5 — name is a built-in MATLAB function. This does not include classes.
how to check if an specific name is existed inside a simulink
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
wenchao zhang
am 20 Okt. 2023
Kommentiert: wenchao zhang
am 10 Nov. 2023
i want to check if an specific name(parameter,signallines,..) is existed inside a simulink model, if use can find_system work in this case? or any more quick command can be used to meet this requirement.
0 Kommentare
Akzeptierte Antwort
atharva
am 10 Nov. 2023
Hey Wenchao,
I understand that you are trying to check if a specific name is a parameter or is a variable declared inside a simulink model.
exist name returns the type of name as a number. This list describes the type associated with each value:
You can find more about the function exist on Mathworks Documentation - https://www.mathworks.com/help/matlab/ref/exist.html
I hope this helps!
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!