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 for Programming
 Forum for Origin C
 "select range from graph" in origin c
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

bbjjbb

7 Posts

Posted - 07/18/2009 :  5:15:37 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
hey guys!
is it possible to use "select range from graph" in the nlfit with origin c?

Iris_Bai

China
Posts

Posted - 07/19/2009 :  11:54:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can implement this by X-Funciton:

1. Open X-Function Builder by F10.

2. Enter the following and save
X-Function edit box: SelRange
Name: xy
Input/Output: Input
Data Type: XYRange
Data: <active>

3. Click Edit X-Function in Code Builder button on toolbar, and copy the following codes in SelRange function.
vector vx, vy;
xy.GetData(vy, vx);

vx += 1;
vy += 10;

xy.SetData(&vy, &vx);

4. Click Compile button and then click Return to Dialog button.

5. Click Save button on X-Function Builder again. Close X-Function Builder.

New a worksheet, fill Row Number to two columns and plot a scatter graph. Run "SelRange -d" in Command window, will open a dialog to choose a range on plot.


Iris
Go to Top of Page

bbjjbb

7 Posts

Posted - 07/20/2009 :  04:27:02 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot!
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