0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 function [ sdpL ] = generateSdpVarL( L, numberOfLToBeDone )
0015
0016 variables = strsplit(',',findsym(L));
0017
0018 for t = 1:numberOfLToBeDone
0019 sdpL{t} = '[';
0020 for i = 1:length(L)
0021 for j = 1:length(L)
0022 currentVariables = strsplit(',',findsym(L(i,j)));
0023 currentRow = char(L(i,j));
0024 if cellfun(@isempty,currentVariables)==false
0025 for k = 1:length(currentVariables)
0026 counter = lookForVariableIndex(currentVariables(k),variables);
0027 currentRow = strrep(currentRow,char(currentVariables(k)),strcat('alfa{',num2str(counter*t),'}'));
0028 end
0029 end
0030 sdpL{t} = [sdpL{t}, currentRow, ' '];
0031 end
0032 if i ~= length(L)
0033 sdpL{t} = strcat(sdpL{t},';');
0034 end
0035 end
0036 sdpL{t} = strcat(sdpL{t},']');
0037 end
0038
0039 return;
0040
0041 end