How can I express this objective function in cvx ? help!

My objective function is (1+S^2) / t , where S and t is scalar variables. when i input this expression into matlab, then return a false which tell me cannot perform the operation : {convex} .\ {real affine}.

I haven’t tried if my syntax works but it looks to me like

quad_over_lin([1,S], t)

See in

http://cvxr.com/cvx/doc/funcref.html#new-functions

It is OK, Thanks you very much !