and the answer is also very basic: dynamically naming variables is one way that beginners force themselves into writing slow, complex, obfuscated, buggy, hard-to-debug code:
"... but I could not get the answer from previous posts"
I am very surprised that you could not find any information on this, expecially considering how this topic has been discussed thousands of times on this forum (I have probably read most of the related threads).
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
2 Comments
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/579855-how-to-rename-an-existing-structure-a-by-assigning-it-a-name-stored-in-a-string#comment_973560
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/579855-how-to-rename-an-existing-structure-a-by-assigning-it-a-name-stored-in-a-string#comment_973560
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/579855-how-to-rename-an-existing-structure-a-by-assigning-it-a-name-stored-in-a-string#comment_973563
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/579855-how-to-rename-an-existing-structure-a-by-assigning-it-a-name-stored-in-a-string#comment_973563
Sign in to comment.