Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2008-05-15, 20:23   #1
automation
初级会员
 
注册日期: 2008-03-17
年龄: 39
帖子: 4
声望力: 0
automation 正向着好的方向发展
微笑 [求助]gui的position问题

function model_open(handles)
% Make sure the diagram is still open
if isempty(find_system('Name','f14')),
open_system('f14'); open_system('f14/Controller')

set_param('f14/Controller/Gain','Position',[275 14 340 56])

figure(handles.F14ControllerEditor)
% Put values of Kf and Ki from the GUI into the Block dialogs
set_param('f14/Controller/Gain','Gain',...
get(handles.KfCurrentValue,'String'))
set_param('f14/Controller/Proportional plus integral compensator',...
'Numerator',...
get(handles.KiCurrentValue,'String'))
end
%endfunction model_open

如上的红字中,‘position’的位置是怎么确定的,要怎么知道是[275 14 340 56],用什么方法确定的?
automation 当前离线   回复时引用此帖
旧 2008-05-16, 17:17   #2
tpwxhfh
初级会员
 
注册日期: 2008-05-08
年龄: 39
帖子: 10
声望力: 17
tpwxhfh 正向着好的方向发展
默认

说一个比较笨的方法吧,我的显示器分辨率是1024*768的,我就将显示器窗口大体按照这个分了几份,然后粗略的定了弹出窗口的位置大小
__________________
追求卓越,完善自我
tpwxhfh 当前离线   回复时引用此帖
回复

主题工具
显示模式

发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码


相似的主题
主题 主题作者 版面 回复 最后发表
【分享】Matlab基础资料精华版欢迎下载! tqr591513792 MATLAB论坛 3 2008-03-12 08:30
【讨论】基于MATLAB的码分多址系统的仿真 cui98 MATLAB论坛 0 2008-02-10 21:35
Simplify Instrument Communication: Using Instrument Drivers with the Instrument Contr TechnicalArticles MATLAB技术文章 0 2008-01-06 16:32
【求助】请高手帮忙改改我的程序(MATLAB) 用近似中值做背景更新 qmxht MATLAB论坛 5 2007-12-31 11:28
[转载] 伊希梅尔肯定了什么? ——《白鲸》中的辩证法 labhunter 学术科研 0 2007-06-20 18:13


所有时间均为北京时间。现在的时间是 17:37


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.