|
<P>matlab中gui界面如何嵌入漂亮的背景 </P>
<P>close all <BR>figure; <BR>A=imread('saturn.jpg');%这里是图片的名称<BR>axes('position',[-0.3,0,1.6,1]); <BR>imshow(A); <BR>t=0:.1:10; <BR>uicontrol(gcf,'style','push',... <BR> 'unit','normalized','position',[0.8,0.57,0.19,0.07],... <BR> 'BackgroundColor',[0.6 0.6 0.6],'ForegroundColor','r',... <BR> 'string','draw sine','fontsize',14,'callback',... <BR> ['axes(''position'',[0.1,0.1,0.4,0.5]);plot(t,sin(t));',... <BR> 'set(gca,''xcolor'',''r'',''ycolor'',''r'');',... <BR> 'set(gca,''color'',''none'');']); <BR>% set(gca,'color','none') % 不覆盖背景 <BR><BR>自己好好看看这啊!!!</P> |
|