nngetclk.m

来自「《神经网络设计》英文版的配套源代码」· M 代码 · 共 22 行

M
22
字号
function [x,y] = nngetclk(s)
%NNGETCLK Get coordinates by mouse click from user.
%
%  [X,Y] = NNGETCLK(S)
%    S - String to display in axis (default = '< CLICK ME >').
%  Returns:
%    X - Horizontal coordinate of mouse click.
%    Y - Vertical coordinate.

% Copyright 1994-2002 PWS Publishing Company and The MathWorks, Inc.
% $Revision: 1.7 $

% DEFAULT

if nargin < 1, s = '< CLICK ME>'; end

% DISPLAY TEXT, GET CLICK, REMOVE TEXT

th = nncentxt(s); set(th,'color',nndkblue);
[x,y] = ginput(1);
delete(th)

⌨️ 快捷键说明

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