How to pass values from GUI to workspace

6 vues (au cours des 30 derniers jours)
Arun Badigannavar
Arun Badigannavar le 4 Déc 2012
How to pass values from GUI to workspace

Réponses (2)

Vishal Rane
Vishal Rane le 4 Déc 2012
Refer this : Assignin

Jan
Jan le 4 Déc 2012
To which workspace? Each function has its own one. Do you mean the base-workspace, which is available in the command window? Then:
assignin('base', 'A', 123 + 17)
Please note, that using such remote-creation of variables frequently will make it much harder to debug your program. Imagine you have tweo different GUIs which assign the same variable. Then it is impossible to find the function, which has applied the last changes.

Catégories

En savoir plus sur Workspace Variables and MAT Files 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