?? nnpin.m
字號:
function y = nnpin(x,a,b,q)
%NNPIN Neural Network Design utility function.
% NNPIN(X,A,B,Q)
% X - Number or matrix.
% A - Lower bound.
% B - Upper bound.
% Q - Quantization constant (optional).
% Returns values in X pinned into the interval defined
% by A and B and rounded to the nearest multiple of Q.
% Copyright 1994-2002 PWS Publishing Company and The MathWorks, Inc.
% $Revision: 1.7 $
% First Version, 8-31-95.
%==================================================================
y = max(a,min(b,x));
y = round(y/q)*q;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -