フィルターのクリア

Export Geometrie Description Variables Not Found?

2 ビュー (過去 30 日間)
Florian Baumgartner
Florian Baumgartner 2015 年 8 月 3 日
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 :-)

採用された回答

Walter Roberson
Walter Roberson 2015 年 8 月 3 日
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 件のコメント
Florian Baumgartner
Florian Baumgartner 2015 年 8 月 4 日
Hey,
thx very much. I tryed it with evalin() and in worked perfect :-)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by