Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

correcting angels of polygon after inputting observed polygon angels in [dms] type (degree minute se

Status
Not open for further replies.

fakhteh

Civil/Environmental
May 20, 2020
1
0
0
IR
Hi
please help me
i faced with this error: Error in m1polygon (line 7) :f=dms2degrees(s)

please run this code and help me to correct it
you know that sum of angels in polygons can find with (n-2)*180
and when some one obsrved angels in surveying then angels have to be adjusted so corrections must be calculated
this code is for finding correction and applying them to the observed angles. angels from observation are in dms format,that means degree minute secound
clc
clear all
format long g
n=input('[number of angels in your polygon]=');
b=input('[dmsangels]=')
s=sum(b)
f=dms2degrees(s)
s1=(n-2)*(180)
e=s1-f %error
c=e/n %correction
b=f+c
thank you
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top