Something went wrong on our end
-
Cristian Galperti authoredCristian Galperti authored
algo_demo1_loadtp.m 962 B
function TP = algo_demo1_loadtp()
% Setup tunable control params default values
%
%
% [ SCDDS - Simulink Control Development & Deployment Suite ] Copyright SPC-EPFL Lausanne 2022.
% Distributed under the terms of the GNU Lesser General Public License, LGPL-3.0-only.
TP.enable = true;
TP.gain = single(2);
TP.refmodel.gain = single(4); % another gain used in referenced model
TP.rowvect = int32([1 2 3]);
TP.colvect = single([1 2 3]');
%TP.matrix = int8([1 2; 3 4]);
TP.matrix = int8(magic(4));
TP.fixdimvector1 = single([1 2 3 4]);
TP.fixdimvector2 = int32([1 2 3 4]);
TP.vectindex = int8([1 2]);
TP.rmatrix = single([1 2 3; 4 5 6]);
TP.tdmatrix = single(zeros(2,3,4));
TP.tdmatrix(:,:,1) = single(1*[1 2 3; 4 5 6]);
TP.tdmatrix(:,:,2) = single(2*[1 2 3; 4 5 6]);
TP.tdmatrix(:,:,3) = single(3*[1 2 3; 4 5 6]);
TP.tdmatrix(:,:,4) = single(4*[1 2 3; 4 5 6]);
end