Empty workspace with GUI

조회 수: 4 (최근 30일)
Sven Schoeberichts
Sven Schoeberichts 2012년 7월 26일
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
Sven Schoeberichts
Sven Schoeberichts 2012년 7월 26일
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?

댓글을 달려면 로그인하십시오.

채택된 답변

Luffy
Luffy 2012년 7월 27일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by