필터 지우기
필터 지우기

Export Geometrie Description Variables Not Found?

조회 수: 2 (최근 30일)
Florian Baumgartner
Florian Baumgartner 2015년 8월 3일
댓글: Florian Baumgartner 2015년 8월 4일
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 CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by