You probably need to use rewrite.
S = sind(t4-90)
sin((pi*(t4 - 90))/180)
I did need to expand the extrpession to get rewrite to work.
would also have worked.
rewrite was introduced in R2012a, so most people should have it.