Runs here, but I think you mean
sol = solvesos(F,[],[],[-t;-l]);
However, this leads to a nonconvex problem, as the resulting relaxation is expressed in t^2. YALMIP reduces the initial 2x2 nonlinear SDP to a nonlinear scalar program, and uses fmincon.
Nonlinear model makes no sense though. If you want to impose that the parameter t is non-negative, just add the constraint t>=0
Further, I don't see the algebraic logic in the model. You want p(x) to be psd when x^2 = x. Hence, postivstellensatz says you want to find a some polynomial s(x) such that p(x) - s(x)*(x^2-x)>=0
[s,coeffs] = polynomial(x,2);
solvesos(sos(p - s*(x^2-x)),[],[],coeffs)