Can I make dynamic name for the structure?
조회 수: 23 (최근 30일)
이전 댓글 표시
I wanted to know whether I can make the name of a structure dynamically in the code or not. Not the name of the fields. I mean the name that the structure will have.
댓글 수: 0
답변 (1개)
Robert U
2020년 2월 6일
Hi Zeynab Mousavikhamene,
You can but you should not. Dynamically named variable names are prone to errors and make code difficult to debug.
Kind regards,
Robert
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Structures에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!