查看单个帖子
旧 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 当前离线   回复时引用此帖