existence of structure without the use of eval
이전 댓글 표시
Hello,
I`m trying to see if a structure exists or not in the workspace (i`m checking the structure if it exists in another structure), the name of the structure can be dynamically changed so i used eval.
isfield(eval(struct_name),workspace_variable)
- The problem is that the model updates and compiles when the script hits that line and that is something I don't want.
How can i do this without making the model update ?
답변 (1개)
Oleg Komarov
2012년 4월 5일
0 개 추천
댓글 수: 2
Adrian Dronca
2012년 4월 5일
Image Analyst
2012년 4월 5일
Or change the name of it, rather than the way you save it.
카테고리
도움말 센터 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!