The Origin Forum
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
 irregularly spaced matrix
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

TherienGroup

USA
Posts

Posted - 03/23/2007 :  12:17:32 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hello,
I have have a matrix of data of the following form: x data is in the first column. It is the independent variable of my experiment (time) and is irregularly spaced. The first row contains the y axis (wavelength) except for the first cell which is blank. The middle of the matrix contains the intensity data for each time wavelength point. I would like to graph this data as 3D surfaces, but since the x- data is not evenly spaced, I cannot figure out how to do this. Additionally, while there is an "irregular x y z" data matrix converstion option, I cannot figure out how to make it work for my data since I have no single z column.

Here is a truncated matrix:
-- 356.361 358.312 360.263 362.214 364.163
-539.5 -8.51588 0.00196 0.295 -0.44019 -0.79352
-488.699 -0.36001 -0.0345 -0.26056 1.52496 0.20029
-437.898 21.4524 0.12618 -0.20244 -0.34517 -0.28439
-387.102 39.7249 1.30709 0.94133 -0.79523 1.30853
-336.301 11.4152 0.06266 -1.12713 -0.28255 0.36594
-285.5 10.1385 -0.63407 0.14545 -0.04445 1.0206

so, the y data is 356.361 nm, 368.312 nm, etc. The x data is -539.5 sec, -488.699 sec, etc. The first cell is empty.


Louise

Mike Buess

USA
3037 Posts

Posted - 03/23/2007 :  11:37:29 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Louise,

I found a topic with the same problem from a few years back and the same solution should work for you. You can read the entire topic here if you wish...
http://www.originlab.com/forum/topic.asp?TOPIC_ID=2426

but I'll give you the solution in a nutshell. First, download and install the Addon Tools from OriginLab's File Exhange.
http://www.originlab.com/FileExchange/details.aspx?fid=6

Your data must be in a worksheet so either convert your matrix to a worksheet (Direct) or import directly to a worksheet. The first button on the new Worksheet Tools toolbar is designed to convert a worksheet such as yours to an XYZ worksheet. You can then convert the XYZ wks back to a matrix with Edit > Convert to Matrix > Random XYZ. That conversion has several options you can play around with for best results.

Mike Buess
Origin WebRing Member
Go to Top of Page

TherienGroup

USA
Posts

Posted - 04/06/2007 :  11:01:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the reply. This addon tool says "Note: This tool is compatible with Origin 6.0 and 6.1 only." I am running Origin7.5. I tried to install it anyway, but I don't see the tool bars that should appear. In the installation instructions it says "
Double-click the Origin AddOn Tools icon in the Program Group you selected on your Start Menu.
Note: If you are installing the tool into Origin 6.1, you must edit the icon's Target text box as follows:
D:\YourOrigin61Path\Origin61.exe -a oaddon
Origin will launch and run using the newly created third Menu Level which runs the OADDON.CNF file.
This file creates two new toolbars which are populated according to two new entries in the
[UserDefinedButtons] section of the ORIGIN.INI."

I changed this shortcut to point to Origin 7.5, but I still don't see the toolbars.

Thanks,
Louise
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/06/2007 :  11:37:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Louise,

Select View > Toolbars and look for the "Worksheet Tools" and "Graph Tools" toolbars. If you find them just check the corresponding boxes. If not you can install them in Origin 7.5 like this...

1. Extract all files in oaddon.exe to your User path.
2. Close Origin and open Origin.ini in Notepad.
3. Scroll down to the [UserDefinedButtons] section and add these lines...

OAddOn1=OAddOn1.INI
OAddOn2=OAddON2.INI

4. Save origin.ini and start Origin.
5. Open the script window and enter these commands.

system.toolbar.create(oaddon1,Worksheet Tools);
system.toolbar.create(oaddon2,Graph Tools);

Each command creates the corresponding toolbar.

Note: this installation method doesn't use the startup icon mentioned in the original instructions.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 04/06/2007 11:49:30 AM
Go to Top of Page

TherienGroup

USA
Posts

Posted - 04/06/2007 :  3:25:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:

Select View > Toolbars and look for the "Worksheet Tools" and "Graph Tools" toolbars. If you find them just check the corresponding boxes. If not you can install them in Origin 7.5 like this...


Nothing there.

quote:

1. Extract all files in oaddon.exe to your User path.


Okay. Done.

quote:

2. Close Origin and open Origin.ini in Notepad.
3. Scroll down to the [UserDefinedButtons] section and add these lines...

OAddOn1=OAddOn1.INI
OAddOn2=OAddON2.INI
[/quote}
All ready in the ini file... probably from the first install?

[quote]
5. Open the script window and enter these commands.

system.toolbar.create(oaddon1,Worksheet Tools);
system.toolbar.create(oaddon2,Graph Tools);



And nothing happens. I opened and closed origin and tried again. I tried with script execution checked and unchecked. I looked back in the toolbars section from the first thing you suggested, and nothing was there.


Louise
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/06/2007 :  3:35:53 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Execute each command by hitting the Enter key. The semicolon is not part of the command but is added automatically after execution. (Script Execution must be checked.)

system.toolbar.create(oaddon1,Worksheet Tools)<Hit Enter key>
system.toolbar.create(oaddon2,Graph Tools)<Hit Enter key>

http://www.originlab.com/www/support/resultstech.aspx?ID=1056&language=English&Version=7.5

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 04/06/2007 3:55:43 PM

Edited by - Mike Buess on 04/06/2007 3:59:34 PM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000