Code covered by the BSD License  

Highlights from
TP Tool

from TP Tool by P. Baranyi, Z. Petres, Sz. Nagy
MATLAB Toolbox providing the functions for TP Model Transformation based Control Design

shift_lpv(D, v)
function S = shift_lpv(D, v)
%SHIFT_LPV Shift a sampled LPV model by a vertex system
%	S = SHIFT_LPV(D, v)
%
%	D - sampled LPV system
%	v - shift matrix
%
%	S - shifted LPV system data


S = D;
[Sy Sx] = size(D);

for i = 1:Sy
	for j = 1:Sx
		S{i,j} = S{i,j} + v(i,j);
	end
end

Contact us at files@mathworks.com