⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getrep.m

📁 这是在网上下的一个东东
💻 M
字号:
% getrep%% [f,weight]=getrep(kernfn,t,xsample,tsample,params);%% This routine will create an array of discretized representers; it% will call the user-supplied kernel function%	f=getrep(kernfn,xsample,tsample,params);%% Inputs%	kernfn		name of matlab function that calculates the%				value of the kernel %				This function is called with the%				following command:%					y=kernfn(xx,tt,params)%	t		array containing time values%	xsample		array containing sampling locations%	tsample		time of sampling%	params		array of all parameters values%% Outputs%	f		representersfunction f=getrep(kernfn,t,xsample,tsample,params);ns=size(xsample,2);nt=size(t,2);weight=t(2)-t(1);v=params(1);D=params(2);f=zeros(ns,nt);for i=1:nt	for j=1:ns		if (t(i) <= tsample) 			f(j,i)=weight*...				feval(kernfn,xsample(j),tsample-t(i),params);		end	end % for jend	% for ireturn		

⌨️ 快捷键说明

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