Filter löschen
Filter löschen

Empty workspace with GUI

1 Ansicht (letzte 30 Tage)
Sven Schoeberichts
Sven Schoeberichts am 26 Jul. 2012
Hi to all,
I use the workspace to debug my programs, but I made a program with a GUI now and the workspace stays empty. Why is it empty and how get the variables to appear in the workspace?
  1 Kommentar
Sven Schoeberichts
Sven Schoeberichts am 26 Jul. 2012
After some research, it's probablty because everything happens within functions and their own workspaces. Is there a way to make them all visible at the same time in the same window?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Luffy
Luffy am 27 Jul. 2012
Try storing variables in base work space by,
assignin('base','name of variable u want to save','value of variable');
To access variable
v = evalin('base','name of variable u want to access');
% the variable's data is now stored in v.

Weitere Antworten (0)

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by