What is the latest version of matlab for which cvx will work?

I, as well as some others on the forum, have been having issues running CVX on the latest, 2023 versions of MatLab. What is the latest that has worked for you all?

It works for me and many other users on the forum in R2023b. What exactly is the problem?

For context, I’m planning to use CVX to minimize L2 norms and L1 norms as part of a compressed sensing algorithm (like Steve Brunton). I’m on windows, matlab R2023a.

First, I unzipped cvx-w64 and ran cvx_setup. This provided the error:

Unrecognized function or variable ‘cvx_error’.

Error in cvx_setup (line 352)
** cvx_error( errmsg, 67, 'UNEXPECTED ERROR: ', ’ ’ );**

Then I ran cvx_error from the same folder, and got this error:

UNEXPECTED ERROR: ------------------------------------------
** Undefined function ‘cvx_version’ for input arguments of type**
** ‘char’.**
** Error in cvx_setup (line 20)**
** cvx_version( ‘-install’, varargin{:} );**
** ------------------------------------------------------------**
Please report this error to support, and include entire output of
CVX_SETUP in your support request.

When run in my code, the error is simply, “Unrecognized function or variable ‘cvx_begin’.”

I could not reproduce it in R2023b. Below is the start of my log, you can see if there is anything substantially different. I unzipped the “standard bundle” http://web.cvxr.com/cvx/cvx-w64.zip

To be sure start with a completely clean Matlab session without anything in the MatlabPath beyond the defaults and no special preferences.

It almost looks like you are missing some files. Is cvx_version.m there?

CVX: Software for Disciplined Convex Programming       (c)2014 CVX Research
Version 2.2, Build 1148 (62bfcca)                  Tue Jan 28 00:51:35 2020
Installation info:
    Path: D:\users\aszek\cvx
    MATLAB version: 23.2 (R2023b)
    OS: Windows Server 2016 amd64 version 10.0
    Java version: 1.8.0_202
Verfying CVX directory contents: