Log_det totally failing

I cannot use log_det anymore with cvx and matlab version 2024a.
Even this fails:

cvx_clear
cvx_begin
variable X(n,n) semidefinite
maximize log_det(X)
%subject to
%trace(X*a) == 10;
%X = X’;
%X >= 0;
cvx_end

I get

ncorrect number or types of inputs or outputs for function vec.

Error in cvx/sparsify>replcols (line 142)
cvx___.readonly( ndxs ) = vec( cvx_readlevel( bN ) );

Error in cvx/sparsify (line 105)
[ x, forms, repls ] = replcols( x, tt, ‘none’, forms, repls, isobj );

Error in cvx_end (line 212)
x = sparsify( x, ‘objective’ );

Error in cvx/det_rootn (line 32)
cvx_end

Error in log_det (line 28)
cvx_optval = size(X,1)*log(det_rootn(X));

Error in maximize (line 14)
x = evalin( ‘caller’, sprintf( '%s ', varargin{:} ) );

I don’t know what’s going on.

But see What might be the problem? for suggestions. I don’t know whether @Miriam_C resolved that issue.

Remove YALMIP from your Matlab path.

Alternatively, first run cvx_setup and later add YALMIP, but not the other way around.

At least for me that both demonstrates the same problem and solves it.

Perhaps something else can also play the role of YALMIP in this scenario.

O.K., I guess my old post CVX Not Running Quadratic Optimisation - #7 by Mark_L_Stone is relevant.