I always get a segmentation violation problem on my MATLAB R2016a using cvx solver Mosek.
I am running some test over a database of images: the code works well for the first 4 or 5, storing in each iteration the quantity of interest but then it crashes unexpectedly. I don't know how to fix this!
In terms of memory, I make sure that I cancel at each iteration the useless quantities, leaving only the ones really needed!
Can you please help? I read that using other solvers this problem is frequent, but using Mosek that should be prevented, right?
My CVX version is:
CVX: Software for Disciplined Convex Programming (c)2014 CVX Research
Version 2.1, Build 1113 (9aaf6f1)