clean is used to remove numerical noise in an sdpvar object.

Syntax

y = clean(x,tol)

Examples

clean is used to remove numerical noise

x1 = sdpvar(n,1);
x2 = sdpvar(n,1);
x = x1+1e-12*x2;
y = clean(x,1e-10);
sdisplay(y)
ans
    'x1'

See also

sdpvar, sdisplay