?? step.m
字號(hào):
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Function: step(FVr_x)
% Author: Rainer Storn
% Description: Implements the step function which is 0 for
% negative input arguments and 1 otherwise.
% Parameters: FVr_x (I) Input vector
% Return value: FVr_y (O) Output vector
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function FVr_y = step(FVr_x);
FVr_y = 0.5*sign(FVr_x)+0.5;
return
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -