Can I make dynamic name for the structure?

조회 수: 23 (최근 30일)
Zeynab Mousavikhamene
Zeynab Mousavikhamene 2020년 2월 6일
답변: Robert U 2020년 2월 6일
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.

답변 (1개)

Robert U
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

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by