function X = real(X) %REAL (overloaded) X.basis = real(X.basis); X = clean(X); if isa(X,'sdpvar') X.conicinfo = [0 0]; end