Pass variables's name and their values from gui to workspace
    4 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
Hello : how can i pass variables's name and their values from gui to workspace?. i want to run a gui progam and give the result in the workspace and work with them in the commands window. could you please help me? Thank you .
0 commentaires
Réponse acceptée
  Arthur
      
 le 24 Fév 2012
        Use the function assignin, and store your variables on the 'base' workspace. For instance, to store variable x:
x = 1:10;
assignin('base','x',x)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Workspace Variables and MAT Files dans Help Center et File Exchange
			
	Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

