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

1 visualización (últimos 30 días)
Sergey Lopatnikov
Sergey Lopatnikov el 10 de Oct. de 2018
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 ??

Respuestas (0)

Categorías

Más información sobre Earth and Planetary Science en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by