ifasetparameters.m

来自「天线设计方面的资料」· M 代码 · 共 15 行

M
15
字号
function YagiUdaSetParameters(handles,X,Y)
format = '%2.3g';

% Set the displayed values
set(handles.Parameter1,'String',sprintf(format,X(1)));
set(handles.Parameter2,'String',sprintf(format,Y(1)));
set(handles.Parameter3,'String',sprintf(format,Y(2)));

% Backup the displayed values in unused Value tag. This allows other
% functions to retrieve parameters from the Value, and prevents users from
% changing values by editing the text.
set(handles.Parameter1,'Value',str2double(sprintf(format,X(1))));
set(handles.Parameter2,'Value',str2double(sprintf(format,Y(1))));
set(handles.Parameter3,'Value',str2double(sprintf(format,Y(2))));

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?