How would I add functionality to a button added to the PDE toolbox?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Boundary Conditions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!