Author |
Topic |
|
ACfit
1 Posts |
Posted - 12/16/2009 : 08:11:38 AM
|
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 7.5 Operating System: WindowsXP
Hi,
maybe it is a very stupid question, but I am struggeling with this problem for more than an hour now.
Does Origin know "i" for complex numbers?
I want to perform a kind of phase correction on NMR data, means I want to multiply my data (for example, all entries in col(B)) with exp(-i*Phi), with Phi being an angle between 0° and 360° or 0 and 2Pi. I want to perform this operation using the "Set Column Values" Function, to compare the manipulated data immediatly with another dataset using a graphic display.
Is this possible? And if not, is there any other way to perform this kind of operation in origin? |
|
VincentLiu
China
Posts |
Posted - 12/17/2009 : 05:02:51 AM
|
Hi ACfit,
There are no functions that operated on the complex datasets can be accessed from the Set Column Values dialog or from the Script Window. To solve the problem, you should use the Origin C to create a function. For more details, please select
Help-> Programming-> Origin C Language Reference-> Classes-> Composite Data Types-> Complex
And please note the Origin 8.1 is the newest version of Origin, there are lots of functions which can be performed on the complex datasets can be directly used in the Set Columns Values. For example, the vcmath1 can perform simple arithmetic on a complex dataset. If you have interest, you can get a demo version of Origin 8.1 through
http://www.originlab.com/index.aspx?s=12&lm=62
Best regards, Vincent Liu OriginLab Tech Services
|
|
|
shafei
USA
49 Posts |
Posted - 11/18/2010 : 11:33:44 PM
|
Can we set a coloumn to accept complex numbers instead of calculating real and imaginary parts separately? |
|
|
cpyang
USA
1406 Posts |
Posted - 11/19/2010 : 10:07:34 PM
|
quote: Originally posted by shafei
Can we set a coloumn to accept complex numbers instead of calculating real and imaginary parts separately?
Complex numbers were supported since version 8 in Origin. You need to open column properties dialog and set Options:Format to numeric, then Data Type to complex(16).
CP
|
|
|
|
Topic |
|
|
|