Using cell arrays as a variable in CVX

조회 수: 9 (최근 30일)
Beverly Grunden
Beverly Grunden 2018년 2월 19일
댓글: Beverly Grunden 2018년 2월 20일
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
Walter Roberson
Walter Roberson 2018년 2월 19일
This appears to refer to the third-party product http://cvxr.com/cvx/

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 2월 19일
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.

카테고리

Help CenterFile Exchange에서 Variables에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by