필터 지우기
필터 지우기

How would I add functionality to a button added to the PDE toolbox?

조회 수: 2 (최근 30일)
Brian
Brian 2013년 5월 6일
Hello,
I have added a button to the pdetoolbox in a edited separate m file by copying the text above for the zoom buttong and changing it a bit. How could I add functionality to this button (to export geometry and boundary condition without using the menu, and to launch my own GUI m file?
zoomicon = str2mat('pdeicon(''zoom'');');
zoom_btn=btngroup(pde_fig,'Iconfunctions',zoomicon,'GroupID','zoom',...
'ButtonID','zoom','Callbacks','pdetool(''zoom'')','Groupsize',[1 1],...
'Position',[0.44 0.96 .04 .04]);
%-ADDITION OF STRUCTURAL OPTIMIZATION BUTTON% BK copy of "zoom" above
optimicon = str2mat('pdeicon(''structoptim'');'); % zoomicon -> structoptim
optim_btn=btngroup(pde_fig,'Iconfunctions',optimicon,'GroupID','structoptim',... % zoomicon -> optimicon
'ButtonID','Optim','Callbacks','pdetool(''structoptim'')','Groupsize',[1 1],...
'Position',[0.48 0.96 .04 .04]); % BK [pos start x, pos start y, length x, length y]
if btnstate(pde_fig,'structoptim',1),
varargout = structoptim(varargin)
end
Any ideas? Thanks for your time.

답변 (0개)

카테고리

Help CenterFile Exchange에서 PDE Solvers에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by