lookForVariableIndex
PURPOSE 
This function return the index of variableToFind in vector allVariables, that exsists for construction.
SYNOPSIS 
function [ index ] = lookForVariableIndex( variableToFind, allVariables )
DESCRIPTION 
CROSS-REFERENCE INFORMATION 
This function calls:
This function is called by:
- generateSdpVarL Generate a number equal to numberOfLToBeDone of sdpvar() Matrix starting from matrix L.
SOURCE CODE 
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 function [ index ] = lookForVariableIndex( variableToFind, allVariables )
0015
0016 found = false;
0017 i = 1;
0018 while ~found || i <= length(allVariables)
0019 if ~isempty(strfind(allVariables{i},char(variableToFind)))
0020 found = true;
0021 index = i;
0022 end
0023 i = i + 1;
0024 end
0025
0026 return;
0027
0028 end
Generated on Thu 24-Sep-2009 17:17:32 by m2html © 2005