请指点,这个语句代表的意思
源程序function prediction = predict(model,Xt,n, simfct, args)
if size(Xt,2)~=1 & size(Xt,1)~=1,
error('prediction only implemented for the one-dimensional autonomous case');
end
eval('model = initlssvm(model{:});',' ');
eval('xdim = model.x_dim;','xdim = max(size(Xt)); ');
eval('n; alle=0;','n=length(Xt)-xdim; alle=1;');
Xt = Xt(1:xdim);
Xt = reshape(Xt,length(Xt),1);
eval('simfct;','simfct=''simlssvm'';');
eval('model = trainlssvm(model);');
xdelays = length(Xt);
prediction = zeros(xdelays+n,1);
prediction(1:xdelays) = Xt;
% closed loop
eval('for i=1:n,prediction(xdelays+i) = feval(simfct,model, prediction(i-1+(1:xdelays))'',args); end',...
'for i=1:n,prediction(xdelays+i) = feval(simfct,model,prediction(i-1+(1:xdelays))''); end');
if ~alle,
prediction = prediction(xdelays+1:end);
end
这个语句代表什么意思?具体是怎么执行的?
('for i=1:n,prediction(xdelays+i) = feval(simfct,model, prediction(i-1+(1:xdelays))'',args); end',...
'for i=1:n,prediction(xdelays+i) = feval(simfct,model,prediction(i-1+(1:xdelays))''); end');
页:
[1]