pdn_prf.m

来自「线性调频信号通过匹配滤波器的程序 还有一些simulink仿真模型」· M 代码 · 共 15 行

M
15
字号
function f = pdn_prf(c)% System parameters used by SIMULINK modelt0 = 0 ;    % Start timetf = 50 ;   % End timeh = .1 ;   % Time step sizeopts=simset('SrcWorkspace','current') ;   % Set to use current workspaceopts=simset(opts,'DstWorkspace','current') ;[t,x] = sim('sysmdl_m',[t0:h:tf],opts) ;  % Get the trajectory[nt,nx] = size(x) ;jp = zeros(1,nt) ; % Preallocate performance integrandfor i = 1:nt  jp(i) = x(i,:)*x(i,:)' ; % Integrand of objective functionendf = h*(sum(jp)-(jp(1)+jp(nt))/2) ;  % Trapezoidal integration

⌨️ 快捷键说明

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