필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Does anyone know why the matrix dl is returning an empty matrix in this code?

조회 수: 1 (최근 30일)
Brian
Brian 2013년 7월 10일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello, I am building a GUI to take import the geometry from the PDE toolbox. A button opens the PDE toolbox and makes the geometry parts global so they can be used later:
function pbn_cre_geom_Callback(hObject, eventdata, handles)
global gd ns fs dl bt
gd; ns; fs; dl; bt;
pdetool
Using the Draw menu in the PDE toolbox, the geometry is exported "Export Geometry Description, Set Formula, Labels" normally without changing any values. The values appear in the Workspace on the right. Another button needs the decomposed geometry, the required variables have been globalised again:
function pbn_sta_opt_Callback(hObject, eventdata, handles)
global gd ns sf bt dl
gd
[dl,bt]=decsg(gd,sf,ns)
dl
When the second button is pressed, gd, dl and bt are empty matrices in the command window. Does anyone have any idea why this is? THanks for your time

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by