How to get define object name from a 'string'?

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 个)

类别

帮助中心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!

Translated by