代码搜索:persistent
找到约 2,751 项符合「persistent」的源代码
代码结果 2,751
www.eeworm.com/read/365527/9858484
m scountfun.m
function h=sCountFun(X)
h = @subCount;
count=X
subCount(0,count);
function subCount(incr, ini)
persistent count;
initializing = nargin > 1;
if initializing
count = ini
www.eeworm.com/read/362163/10015088
java loan.java
//
// Unified Library Application
// Case study in Unified Modeling Language Toolkit
//
// Loan.java: represents a loan. The loan refer to one
// title and one borrower.
//
// Copyright (c
www.eeworm.com/read/362163/10015374
java loan.java
//
// Unified Library Application
// Case study in Unified Modeling Language Toolkit
//
// Loan.java: represents a loan. The loan refer to one
// title and one borrower.
//
// Copyright (c
www.eeworm.com/read/164586/10100533
m sizeof.m
function s = sizeof(type)
% SIZEOF Number of bytes in a given precision specification
persistent typemap initialized
% Set up the type map if we haven't already done so
if (isempty(initialized
www.eeworm.com/read/163199/10170995
m chap7_10f.m
%Discrete Kalman filter
%x=Ax+B(u+w(k));
%y=Cx+D+v(k)
function [u]=kalman(u1,u2,u3)
persistent A B C D Q R P x
yv=u2;
if u3==0
x=zeros(2,1);
ts=0.001;
a=25;b=133;
sys=tf(b,[1,a
www.eeworm.com/read/163161/10172719
m chap7_10f.m
%Discrete Kalman filter
%x=Ax+B(u+w(k));
%y=Cx+D+v(k)
function [u]=kalman(u1,u2,u3)
persistent A B C D Q R P x
yv=u2;
if u3==0
x=zeros(2,1);
ts=0.001;
a=25;b=133;
sys=tf(b,[1,a
www.eeworm.com/read/419623/10853310
m agvobs.m
function y=agvobs(x,w)
% Prediction of observation
%
% Check if variables should be initailized
persistent C % Make variables static
if nargin==1
return
end
y = x(1:3)+w;
www.eeworm.com/read/419623/10853355
m bodydot.m
function xdot=bodydot(x,u,v)
% Falling body example. State equation.
persistent gamma
if nargin==1,
gamma = x(4);
else
xdot = [-x(2)+v(1);
-exp(-gamma*x(1))*x(2)*x(2)*x(3)+v(2);
www.eeworm.com/read/419623/10853366
m body2.m
function y=body2(x,w)
% Falling body example. Output equation.
persistent M H
if nargin==1,
M = x(2);
H = x(3);
else
tmp = x(1)-H;
y = sqrt(M*M+tmp*tmp)+w;
end
www.eeworm.com/read/273090/10928048
m chap7_10f.m
%Discrete Kalman filter
%x=Ax+B(u+w(k));
%y=Cx+D+v(k)
function [u]=kalman(u1,u2,u3)
persistent A B C D Q R P x
yv=u2;
if u3==0
x=zeros(2,1);
ts=0.001;
a=25;b=133;
sys=tf(b,[1,a