Skip to content
Snippets Groups Projects
Commit d50daff5 authored by Cristian Galperti's avatar Cristian Galperti
Browse files

demo1 default tp struct aligned with MDSplus

parent f904ca42
No related branches found
No related tags found
No related merge requests found
...@@ -7,12 +7,18 @@ function TP = algo_demo1_loadtp() ...@@ -7,12 +7,18 @@ function TP = algo_demo1_loadtp()
TP.enable = true; TP.enable = true;
TP.gain = single(2); TP.gain = single(2);
TP.refmodel.gain = single(4); % another gain used in referenced model TP.refmodel.gain = single(1);
TP.rowvect = int32([1 2 3]); TP.rowvect = int32([1 2 3]);
TP.colvect = single([1 2 3]'); TP.colvect = single([1 2 1 pi/4 5]');
TP.matrix = int8([1 2; 3 4]); TP.matrix = int16([11 12 13 14; 21 22 23 24; 31 32 33 34; 41 42 43 44]);
TP.fixdimvector1 = single([1 2 3 4]); TP.fixdimvector1 = single([1 2 3 4]);
TP.fixdimvector2 = int32([1 2 3 4]); TP.fixdimvector2 = int32([1 2 3 4]);
TP.vectindex = single([1 2]); TP.vectindex = int8([1 2]);
TP.rmatrix = int16([11 12 13 14; 21 22 23 24; 31 32 33 34]);
TP.tdmatrix = int16(zeros(2,3,4));
TP.tdmatrix(:,:,1) = int16(1*[111 121 131; 211 221 231]);
TP.tdmatrix(:,:,2) = int16(1*[112 122 132; 212 222 232]);
TP.tdmatrix(:,:,3) = int16(1*[113 123 133; 213 221 233]);
TP.tdmatrix(:,:,4) = int16(1*[114 124 134; 214 224 234]);
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment