File Exchange
Try Origin for Free
The Origin Forum
Home
|
Profile
|
Register
|
Active Topics
|
Members
|
Search
|
FAQ
|
Send File to Tech support
Username:
Password:
Save Password
Forgot your Password?
|
Admin Options
All Forums
Origin Forum
Origin Forum
rotate a line curve
New Topic
Reply to Topic
Printer Friendly
Author
Topic
jqian
USA
Posts
Posted - 01/03/2008 : 11:50:10 AM
Origin Version (Select Help-->About Origin): 7.5
Operating System:
May I know how to rotate a curve to a certain angle such as 5 degrees?
Thanks.
jqian
USA
Posts
Posted - 01/16/2008 : 11:02:03 PM
// if column1 is x and column2 is y. and if you want to turn the curve to angle 45 degrees do following:
work -a 2; //add 2 columns at the end of the worksheet;
Enter_angle =45;
col(3)=SQRT(col(1)*col(1)+col(2)*col(2))*cos(atan(col(2)/col(1))+Enter_Angle*PI/180);
col(4)=SQRT(col(1)*col(1)+col(2)*col(2))*sin(atan(col(2)/col(1))+Enter_Angle*PI/180);
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Forum
Origin Viewer Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000