I have a sparse (double) matrix A, and a sdpvar vector x. Running
y = A*x;
runs fine.
But when I do any operation on y such as y.*2, y'*y, or even norm(y,2)^2, I get an error.
Example:
>> y
Linear matrix variable 611204x1 (full, real, 153600 variables)
Coeffiecient range: 3.8147e-06 to 47.167
>> y'*y
Error using * (line 524)
Error using ones
Requested 153600x153600 (175.8GB) array exceeds maximum array size preference. Creation of arrays
greater than this limit may take a long time and cause MATLAB to become unresponsive.
What am I missing?
Thanks,
Noam