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
 LabTalk Forum
 X-function output to temporary variables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

snelephant

USA
1 Posts

Posted - 06/17/2016 :  12:06:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I would like to perform several intermediate analysis operations on a matrix without creating new objects. That is, I don't want to create now workbooks, worksheets, or anything that would increase the file size of the project.

However some X-functions seem to require output to project objects (books, sheets, etc.) For example the medianfilter:

medianflt2 im:= om:=

creates an output matrix, om, that has to be specified as a book, sheet, etc. How can I use the output of these types of functions without creating 'permanent' objects in the project? Can I instead save the output to a local variable for processing in a script?

cpyang

USA
1406 Posts

Posted - 06/20/2016 :  7:47:59 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin currently only allow 1D as type dataset, so 2D dataset is not yet supported, but you can always create a hidden matrix book and delete it at the end of the script. We can work on such an example, I also updated ORG-10841 to request higher priority for Origin to add 2D dataset support.

CP

Go to Top of Page

Sam Fang

293 Posts

Posted - 06/21/2016 :  03:36:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin's LabTalk document shows two examples to use temporary hidden MatrixBooks for intermediate matrix outputs, and delete them when they are not needed in the next operation.

http://www.originlab.com/doc/LabTalk/guide/Matrix-Object-Data-Manipulation#Use_Temporary_Matrix_Object_as_Intermediate_Analysis_Result

Sam
OriginLab Technical Services

Edited by - Sam Fang on 06/23/2016 02:09:56 AM
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