Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!i6g2000vbk.googlegroups.com!not-for-mail
From: eige <jeicke@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Angle between line and axis
Date: Tue, 10 Jan 2012 06:45:27 -0800 (PST)
Organization: http://groups.google.com
Lines: 14
Message-ID: <d9d5fbf1-2532-4943-9114-3b12d20e06bb@i6g2000vbk.googlegroups.com>
References: <jehf9c$esc$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: 63.232.44.130
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1326206727 26085 127.0.0.1 (10 Jan 2012 14:45:27 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 10 Jan 2012 14:45:27 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i6g2000vbk.googlegroups.com; posting-host=63.232.44.130; posting-account=FYQ5EwoAAAARleU9EDxjlH7qNuRQLY8c
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1,gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:754305

On Jan 10, 8:43 am, "Suzana " <suzana.petro...@mfkg.rs> wrote:
> Hello!
>
> How I can calculate angle between line and x axis in Matlab.
> For instance, I have point P1 with coordinate x1 = 20; y1=35 and point P2 with coordinates x2=68 and y2= 25.
>
> I can draw line between these points and calculate it length, etc. But I don't know how I can calculate angle between THIS line and x - axis.....
>
> Thaks in advance....

um, atan?