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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 X-function output to temporary variables

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
snelephant Posted - 06/17/2016 : 12:06:16 AM
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?
2   L A T E S T    R E P L I E S    (Newest First)
Sam Fang Posted - 06/21/2016 : 03:36:43 AM
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
cpyang Posted - 06/20/2016 : 7:47:59 PM
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


The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000