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
 Origin Forum
 Update workbook of .mat type?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Un-Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

en_muh@yahoo.com

Iraq
4 Posts

Posted - 12/05/2016 :  02:06:37 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
OriginPro version 2016 (64-bit) b.9.3.226.

I have created an Origin Project with many subfolders and different workbooks, the source files are Matlab files (.mat).
I have updated my Matlab files and want to update the Origin Project.
Is there any direct way to do that?
I tried to use "Re-Import" and "Re- Import Directly" but none of them work.
Also if I try to change each workbook manually it will be very time-consuming.

Thanks in advance.

Echo_Chu

China
Posts

Posted - 12/07/2016 :  12:35:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I am afraid that Origin does not support re-import Matlab Files yet.

However, if all your files are still in the same folder as what they was imported in Origin, you can try the script below. it loops all worksheets in a project, find out the imported matlab file and re-import it from the saved path.


//loop all worksheet in the project
doc -e W  
{
   string strpath$=%(%H, @W,SYSTEM.IMPORT.FILENAME$); //read the path of imported file in worksheet
   wclear msg:=0; //clear worksheet
   impMatlab fname:=strpath$; //re-import the file
}




Echo
OriginLab Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic Un-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