MATLAB: Degrees to radians

complex trig functionsdegrees to radiansMapping Toolboxtrigonometric functions

I'm currently trying to find the sin of coordinates which are not in the form of simple degrees i.e it is in the form 123d 43m 15s. How do I write this command in terms of cos and sin? I've tried several commands but I cannot seem to get it right it's saying 'invalid statement'. How do I perform this function?

Best Answer

I dont know if there is an inbuilt function. but you can do like this. let 'd' be the degree ,'m' and 's' be the minute and second.Then you can put an equation to convert this format into decimal.
degree=d+(m/60)+(s/3600);
rad=degtorad(degree);