Export Geometrie Description Variables Not Found?

1 vue (au cours des 30 derniers jours)
Florian Baumgartner
Florian Baumgartner le 3 Août 2015
Hello,
I exported the geometrie description variables "gd, sf, ns" from the pdetool into the workspace. Now I want to use this variables in my GUI_Funktion.
function varargout = GUI_Program(varargin)
% a lot of programming
end
Matlab doesnt find the variables if I call them from the GUI_Funktion. But I can use the varibales in the command line. How can I solve this problem? Thanks in advance :-)

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Août 2015
When you exported them, you exported them into the "base workspace". Each function has its own workspace. You need to pass the values in to your function, or you need to use evalin('base') to retrieve the values from the "base workspace"
  1 commentaire
Florian Baumgartner
Florian Baumgartner le 4 Août 2015
Hey,
thx very much. I tryed it with evalin() and in worked perfect :-)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by