Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Sergey Lopatnikov
Sergey Lopatnikov le 10 Oct 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 ??

Réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by