Well, usually this is done by writing something like:
>> r2d=pi/180; y=sin(theta*r2d); << or just >> y=sin(pi/180*theta); <<. Perhaps using these functions might make life easier, who knows... After all, it saves you about 7 worth of characters for each such statement in your program. :-)