
fig=createmadfig('bm'); 
fig=createmadloadmenu(fig);
setbm=uimenu('Parent',fig, 'Label','&Setup');
  uimenu('Parent',setbm, 'Label','&BM params...','Callback','bm setbm');
fig=createmadmenus(fig);

ud=get(fig,'UserData');

ud.bmAxes = axes('Parent',fig,...
   'Position',[0.05 0.55 0.9 0.4],...
   'DrawMode','fast',...
   'NextPlot','replacechildren',...
   'Box','on',...
   'XTick',[],'YTick',[]);
ylabel('Membrane displacement');
   
ud.wavAxes = axes('Parent',fig,...
   'Position',[0.05 0.15 0.9 0.4],...
   'DrawMode','fast',...
   'NextPlot','replacechildren',...
   'Box','on');   
   
ud.control=uicontrol('Parent',fig, ...
	'Position',[0.05 0.01 0.9 0.08], ...
	'Callback','bm start',...
	'String','run', ...
	'Style','pushbutton');
	 
set(fig,'UserData',ud);
