In my CVX code, I want to construct one “expression holder” to hold the original declared variable, so as to invoke the original variable in the following code. For invoking the original variables more easily, the declared “expression holder” should satisfy the given dimensionality, which will result out that some elements in the declared “expression holder” will not be inserted with the original variable.
For example:
variable a(3);
expression c(4);
for i=1:3
c(i)=a(i);
end
a(4) has not been inserted with any original variable.
My question is: Is it OK that some elements in the declared “expression holder” will not be inserted with any original variable?