Path: news.mathworks.com!not-for-mail
From: "someone " <someone@somewhere.net>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Does Matlab have a function that converts degrees to radians?
Date: Thu, 9 Aug 2007 15:06:08 +0000 (UTC)
Organization: Mitre Corp
Lines: 18
Message-ID: <f9fah0$t0j$1@fred.mathworks.com>
References: <f9f9gs$fve$1@fred.mathworks.com>
Reply-To: "someone " <someone@somewhere.net>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186671968 29715 172.30.248.36 (9 Aug 2007 15:06:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 9 Aug 2007 15:06:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2318
Xref: news.mathworks.com comp.soft-sys.matlab:423198


"David " <david_m_spinella@yahoo.com> wrote in message 
<f9f9gs$fve$1@fred.mathworks.com>...
> Does Matlab have a function that converts degrees to 
> radians?
> 
> I searched the help but couldn't find anything.
> 
> DS


You can write your own one liner:

function y = deg2rad(x)
y = x * pi/180;


also there is sind vice sin, cosd vice cos, etc.