matlab GUI
USTC_daffodil
USTC quasi-postgraduate
展开
-
matlab GUI 一些基础操作的代码
GUI 一些基础操作的代码 b=uicontrol('Parent',gcf,'String','颜色设置','Style','pushbutton','callback',... 'c=uisetcolor,set(b,''BackgroundColor'',c);'); close all; h=waitbar(0,'实例'); get(h); get(get(h,'Children')) ha=get(h,'Children'); get(ha,'Children') hrand=waitb原创 2021-08-06 14:46:46 · 506 阅读 · 0 评论 -
matlab GUI figure置右上角
GUI figure置右上角 h=figure('units','pixels',... 'position',[820 430 450 250],... 'menubar','none',... 'name','Have a try',... 'numbertitle','off',... 'resize','off');原创 2021-08-05 14:20:48 · 789 阅读 · 0 评论 -
matlab GUI 界面暂时关闭和打开&关闭请求操作
GUI 界面暂时关闭和打开&关闭请求操作 hf=figure; get(hf); set(hf,'Color','w'); set(hf,'Menubar','none'); set(hf,'NumberTitle','off','Name','演示'); set(hf,'Resize','off'); pause(3) set(hf,'visible','off'); pause(3) set(hf,'visible','on'); closereq hf=figure; get(hf); se原创 2021-08-05 10:53:28 · 3082 阅读 · 0 评论 -
matlab GUI 实现按钮切换plot页面(含clear功能)
GUI 实现按钮切换plot页面(含clear功能) hf=figure(... 'Units','Normalized',... 'Menu','none',... 'Position',[0.1 0.1 0.7,0.5]); ha=axes(... 'Parent',hf,... 'Units','Normalized',... 'Position',[0.1 0.1 0.6 0.8]); hb1=uicontrol(... 'Style','原创 2021-08-05 10:17:16 · 1750 阅读 · 0 评论 -
matlab GUI gca gco gcf
GUI gca gco gcf gcf、gca以及gco的区别 gcf返回当前Figure对象的句柄值 gca返回当前axes对象的句柄值 gco返回当前鼠标单击的句柄值,该对象可以是除root对象外的任意图形对象,并且Matlab会把当前图形对象的句柄值存放在Figure的CurrentObject属性中。 figure axes 鼠标单击 ...原创 2021-08-05 09:00:36 · 214 阅读 · 0 评论