How to get define object name from a 'string'?
1 次查看(过去 30 天)
显示 更早的评论
I defined class, say, Planet:
{ classdef Planet properties Data end end } Now I would like to enter some name which I get as a string, say "Mars".
How I can create automatically object: Mars=Planet ??
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Earth and Planetary Science 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!