Filter löschen
Filter löschen

Pass variables's name and their values from gui to workspace

1 Ansicht (letzte 30 Tage)
Mohammad
Mohammad am 24 Feb. 2012
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 .

Akzeptierte Antwort

Arthur
Arthur am 24 Feb. 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)

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by