coord.m
来自「内模控制器(IMC)工具箱。包括参数整定、PID控制器参数转换等」· M 代码 · 共 25 行
M
25 行
hold on
set(gcf,'WindowButtonDownfcn',[...
'temp=get(gca,''CurrentPoint'');',...
'plot(temp(2,1),temp(2,2),''x'');',...
'uicontrol(gcf,''Style'',''text'',''Position'',[100 20 30 16],',...
'''Backgroundcolor'',get(gca,''Color''),'...
'''Foregroundcolor'',''w'','...
'''String'',''x = '');'...
'uicontrol(gcf,''Style'',''text'',''Position'',[100 5 30 16],',...
'''Backgroundcolor'',get(gca,''Color''),'...
'''Foregroundcolor'',''w'','...
'''String'',''y = '');'...
'uicontrol(gcf,''Style'',''text'',''Position'',[125 20 80 16],',...
'''Backgroundcolor'',get(gca,''Color''),'...
'''Foregroundcolor'',''w'','...
'''String'',num2str(temp(2,1)));'...
'uicontrol(gcf,''Style'',''text'',''Position'',[125 5 80 16],',...
'''Backgroundcolor'',get(gca,''Color''),'...
'''Foregroundcolor'',''w'','...
'''String'',num2str(temp(2,2)));']);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?