Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

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
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

It would help to use "angles" instead of "angels." I'll not work up any jokes.

How many angles are you entering in line 5?
How many inputs does the dms2degrees handle?

TTFN (ta ta for now)
I can do absolutely anything. I'm an expert! faq731-376 forum1529 Entire Forum list
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor