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 ExchangeEarth and Planetary Science についてさらに検索

製品

タグ

質問済み:

2018 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by