MATLAB Answers

0

Using cell arrays as a variable in CVX

Asked by Beverly Grunden on 19 Feb 2018
Latest activity Commented on by Beverly Grunden on 20 Feb 2018
I want to minimize the objective function 2-norm of (A*D*v-g) over all possible filter banks h: , where the variable, h, is a cell array and is used as input to the function that calculates D. The cell array, h, has three cells, each containing a vector (filter) of length 3.
I am not sure if CVX can handle a cell array as a variable, but if it does, how to write it? Searching the web and CVX resources has not been successful.
Thank you,

  1 Comment

This appears to refer to the third-party product http://cvxr.com/cvx/

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 19 Feb 2018

No, cell arrays cannot be used as variables in cvx. Look in section 4.2 of the user manual http://cvxr.com/cvx/doc/CVX.pdf and see "Variables can be real or complex scalars, vectors, matrices, or n-dimensional arrays." Notice there is no mention of cell arrays.
You will need to create separate variables from the three elements of the cell array and use those separate variables.

  1 Comment

Thank you. I will try that.

Sign in to comment.