matlab figure 最大,最小,置顶
来源:互联网 发布:网络整合营销书面方案 编辑:程序博客网 时间:2024/06/10 16:03
今天逛论坛的时候发现一个很有意思的代码 功能很好的,特地分享下;
代码:
clc;clear all;h=figure; jframe=getJFrame(gcf); %或者jframe=getJFrame(h); jframe.setMaximized(1); %最大化figurejframe.setMinimized(1); %最小化figurejframe.setAlwaysOnTop(1); %将figure置顶
getJFrame文件在这:
function JFrame = getJFrame(hfig)error(nargchk(1,1,nargin));if ~ishandle(hfig) && ~isequal(get(hfig,'Type'),'figure') error('The input argument must be a Figure handle.');endmde = com.mathworks.mde.desk.MLDesktop.getInstance;if isequal(get(hfig,'NumberTitle'),'off') && isempty(get(hfig,'Name')) figTag = 'junziyang'; %Name the figure temporarily set(hfig,'Name',figTag);elseif isequal(get(hfig,'NumberTitle'),'on') && isempty(get(hfig,'Name')) figTag = ['Figure ',num2str(hfig)];elseif isequal(get(hfig,'NumberTitle'),'off') && ~isempty(get(hfig,'Name')) figTag = get(hfig,'Name');else figTag = ['Figure ',num2str(hfig),': ',get(hfig,'Name')];enddrawnow %Update figure windowjfig = mde.getClient(figTag); %Get the underlying JAVA object of the figure.JFrame = jfig.getRootPane.getParent();if isequal(get(hfig,'Name'),'junziyang') set(hfig,'Name',''); %Delete the temporary figure nameend
- matlab figure 最大,最小,置顶
- 最大最小中值滤波 matlab
- matlab Figure Properties
- matlab figure的用法
- Matlab: figure的用法
- Matlab figure窗口最大化
- matlab保存figure
- [转载]matlab figure
- matlab中figure是什么意思
- matlab-figure&plot使用
- MATLAB“figure”使用详解!
- MATLAB循环保存figure
- matlab figure是什么用途
- Matlab: figure的用法
- MATLAB figure中提取数据
- Matlab学习笔记 figure函数
- Matlab 自定义figure上下标
- matlab figure edit 加标注
- git download ffmpeg x264 etc
- xcodebuild 使用手册
- C#题目
- (个人原创)mac 下git 的使用(git server部署在本地局域网)
- JSF知识点概览
- matlab figure 最大,最小,置顶
- MS SQL SERVER动态SQL
- yii 权限控制
- JQuery的serialize()方法
- sql server try...catch使用 异常处理 不错的SQL错误处理
- Android平台上使用属性系统(property system)
- sqlite3事务和锁的实例
- 找出只出现一次的两个数
- Python发送邮件给多人