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

2 次查看(过去 30 天)
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 .

采纳的回答

Arthur
Arthur 2012-2-24
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 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by