T O P I C R E V I E W |
jodowd |
Posted - 10/09/2011 : 5:33:45 PM I have used the Matlab demo (\Samples\Automation Server\MATLAB\CreatePlotInOrigin.m) which works perfectly. But this demo does not show how to get data back from Origin into Matlab. Does anyone know how to read data out of an Origin worksheet into Matlab using the automation server?
|
4 L A T E S T R E P L I E S (Newest First) |
easwar |
Posted - 12/02/2012 : 5:36:27 PM quote: Originally posted by defender845
Is there anyway to only pull specific columns using the GetWorksheet command? I'd hate to pull everything into Matlab if I only have 2 columns that I need to have pulled in there.
Hi,
See this wiki page: http://wiki.originlab.com/~originla/wiki/index.php?title=OriginCOM:Application-GetWorksheet for details on how to specify start/end rows and/or start/end columns.
Easwar OriginLab |
defender845 |
Posted - 12/01/2012 : 4:54:17 PM Is there anyway to only pull specific columns using the GetWorksheet command? I'd hate to pull everything into Matlab if I only have 2 columns that I need to have pulled in there. |
jodowd |
Posted - 10/10/2011 : 2:51:49 PM Greg,
thanks. GetWorksheet works perfectly.
(1) Send variable mdata to Origin: invoke(originObj, 'PutWorksheet', 'Data1', mdata);
(2)Read data back into matlab val=invoke(originObj, 'GetWorksheet', 'Data1')
|
greg |
Posted - 10/10/2011 : 1:58:37 PM The example you cite uses PutWorksheet method to send data array to Origin. Use the GetWorksheet method for the reverse. |