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
 Putting a matlab matrix in a worksheet
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rezahasi1

Bangladesh
Posts

Posted - 07/30/2004 :  12:29:33 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Although I was able to send data from MATLAB to origin worksheet, I can not send the data to append by adding column or by adding rows, or to a specific column by clearing that column.

Anybody can help about it for MATLAB?

Iris_Bai

China
Posts

Posted - 08/02/2004 :  06:05:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

% Send data over to the Data1 worksheet starting from second row and third column
invoke(originObj, 'PutWorksheet', 'Data1', mdata, 2, 3);

The phototype of PutWorksheet method is:
boolean PutWorksheet(BSTR name, VARIANT data, [optional] VARIANT r1, [optional] VARIANT c1);
//r1, the begining row
//c1, the begining column

Iris

Edited by - Iris_Bai on 08/02/2004 06:09:02 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