While upgrading from CVX 1.22 to 2.0b, I encounter a problem when defining a scalar or 1-D (vector) variable with qualifier complex.
For instance, the example from the Users’ Guide
variable w(50) complex
results in this error:
??? Error using ==> variable at 113
Attempted to access sz(2); index out of bounds because numel(sz)=1.
Matlab version is 7.9.0.529 (R2009b), and problem occurs for all tested platforms (Linux 64 Bit, Windows 32 Bit, Windows 64 Bit).
Build number is 1005:
Code: build 1005, 2013-08-21 10:54:10
To reproduce this error, try one of the complex-valued problems from examples/antenna_design, for instance ant_array_min_sidelobe
>> ant_array_min_sidelobe
??? Error using ==> variable at 113
Attempted to access sz(2); index out of bounds because numel(sz)=1.
Error in ==> ant_array_min_sidelobe at 120
variable w(n) complex