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 ??

Risposte (0)

Categorie

Scopri di più su Earth and Planetary Science in Centro assistenza e File Exchange

Prodotti

Tag

Richiesto:

il 10 Ott 2018

Community Treasure Hunt

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

Start Hunting!

Translated by