[Scilab-users] Bulk conversion of matlab files
Richard Davey
Richard.Davey at fugro-robertson.com
Wed Jan 16 17:12:54 CET 2013
Hi all,
I have tried the GUI for the bulk conversion of matlab to scilab in a single folder but it does not work. Instead, I tried the following script below but this crashes Scilab! Does anyone have a solution for either problem? I am using Scilab 5.4.0.
// read each .m file and run matfile2sci
host('S:')
cd ("S:\somepath\matlab")
if getos() == 'Windows' then
filelist=unix_g('dir /B *.m')
else
filelist=unix_g('ls *.m')
end
n=size(filelist,1);
for i = 1:n,
outputfile = filelist(i);
m = length(outputfile);
outputfile = part(outputfile,1:(m-1))+".conv";
matfile2sci(filelist(i),outputfile), end;
end;
Thanks,
Richard
---
Fugro Robertson Limited
Tyn y Coed
Llanrhos
Llandudno
North Wales
LL30 1SA
United Kingdom
Tel: +44 (0)1492 581811
Fax: +44 (0)1492 583416
General Email: info at fugro-robertson.com
Website: www.fugro-robertson.com
This email communication (including any attachments) may
contain confidential and privileged information intended solely
for the individual to whom it is addressed. If you are not the
intended recipient, you are hereby notified that any
dissemination, disclosure, distribution or copying is strictly
prohibited and any reliance on this email (including any
attachments), or on any information contained in it or use of
any information contained in it, is strictly prohibited and may
be unlawful.
The sender of this email communication is not an officer of the
Company and therefore has no authority whatsoever to bind the
company legally to any contractual arrangements.
If you have received this communication in error, please notify
the sender by telephone and delete the communication.
Fugro Robertson Limited is a limited company registered in
England and Wales (Reg No. 3006207) at Tyn y Coed, Pentwyn Road,
Llanrhos, Conwy, LL30 1SA. VAT No. GB682004360.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130116/c1709f04/attachment.htm>
More information about the users
mailing list