📄 lcr_simch.m
字号:
%--------------------------------------------------------------------% lcr_sim.m ---------------------------------------------------------%% Program for the computation of the level-crossing rate N(r).%%--------------------------------------------------------------------% N_r=lcr_sim(xi_t,r,T_sim,PLOT)%--------------------------------------------------------------------% Explanation of the input parameters:%% xi_t: deterministic process or time-domain signal to be analysed % with respect to the level-crossing rate N(r)% r: level vector% T_sim: duration of the simulation% PLOT: plot of the resulting level-crossing rate N(r), if PLOT==1function N_r=lcr_simch(sigma_1_2,BEITA1,r,f_max,PLOT)if nargin==3, PLOT=0;endN_r=zeros(size(r));for k=1:length(r), a=sqrt(BEITA1/(2*pi)); rk=10^(r(k)/20); b=rk/sigma_1_2; c=-rk*rk/(2*sigma_1_2); N_r(k)=a*b*exp(c);endN_r=N_r/f_max;if PLOT==1, plot(r,N_r) xlabel('r') ylabel('N(r)')end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -