quadratic objective function

I want to maximize the function:

```
maximize y' * diag(diag(bo * bo'))* y
```

where both bo and y are complex vectors.

I used the previous formula and the quad_form function:

```
maximize quad_form(y,diag(diag(bo * bo')) )
```

and both give this error:

```
Error using class
Cannot change the number of fields of class 'cvxtuple' without first typing 'clear classes'.
Error in cvxtuple (line 19)
v = class( struct( 'value_', { v }, 'dual_', { [] } ), 'cvxtuple', cvxobj );
Error in cvx_end (line 183)
assignin( 'caller', 'cvx_optpnt', cvxtuple( cvx_collapse( vars, false, false ) ) );
Error in lorentz (line 100)
cvx_end
Error in rotated_lorentz (line 99)
cone = lorentz( sx, dim );
Error in cvx/quad_over_lin (line 77)
{ x, y, z } == rotated_lorentz( sx, dim, ~isreal( x ) ); %#ok
Error in cvx/sum_square_abs (line 6)
cvx_optval = quad_over_lin( x, 1, varargin{:} );
Error in cvx/quad_form (line 224)
cvx_optval = cvx_optval + alpha * sum_square_abs( ( R * x ) / sqrt(alpha) ) + real( v' * x );
Error in maximize (line 14)
x = evalin( 'caller', sprintf( '%s ', varargin{:} ) );
Error in max_min_assump1_06_modified_4_squared_obj (line 238)
maximize quad_form(y,diag(diag(bo * bo')) )
```

How Could i solve this error??

I am using :

CVX Version 2.0 (beta), October 2013, Build 1011 for Windows 64