Quantcast

[Scilab-users] scilab 6 - mfile2sci fails

classic Classic list List threaded Threaded
2 messages Options
Alan Teeder Alan Teeder
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Scilab-users] scilab 6 - mfile2sci fails

Here is a transcript  of a mfile2sci GUI session with Scilab 6.   It works fine with Scilab 5.
 
--> mfile2sci
ans  =
 
    []
 
  ****** Beginning of mfile2sci() session ******
  File to convert: C:/Users/alan/Documents/Scilab/pitch.m
  Result file path: C:/Users/alan/Documents/Scilab/
  Recursive mode: ON
  Only double values used in M-file: YES
  Verbose mode: 3
  Generate formated code: YES
  M-file reading...
  M-file reading: Done
  Syntax modification...
at line    57 of function isinstring   ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\kernel\isinstring.sci line 70 )
at line    56 of function m2sci_syntax ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\kernel\m2sci_syntax.sci line 69 )
at line   140 of function mfile2sci    ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\mfile2sci.sci line 153 )
at line   147 of function cb_m2sci_gui ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\cb_m2sci_gui.sci line 163 )
 
Undefined variable: _str2code
 
Alan

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
doogiewilliams doogiewilliams
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Scilab-users] scilab 6 - mfile2sci fails

This post has NOT been accepted by the mailing list yet.
I am getting the same error.  I have 11 Matlab files I am trying to convert, and I get the "Undefined variable: _str2code" on 3 of them.  Another one gives me an "save: Wrong type for input argument #2: A String expected.", and one crashes Scilab.  So I am able to convert only 6 of my 11 files.  Here is the text of the last error:

--> mfile2sci
 ans  =

    []

 -- File D:/Projects/Damper/DamperTestRequestSystem v1-2/Matlab code/For Damper web application/find_peaks.m contains more than one function --
 -- Each function converted separately: find_peaks local_find_peakindices --
 -- Temporary files put in: C:\Users\NZGC6X\AppData\Local\Temp\SCI_TMP_2612_21189\ --
at line    55 of function translatepaths ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\translatepaths.sci line 68 )
at line    99 of function multi_fun_file ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\kernel\multi_fun_file.sci line 111 )
at line    27 of function mfile2sci      ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\mfile2sci.sci line 40 )
at line   147 of function cb_m2sci_gui   ( C:\Program Files\scilab-6.0.0\modules\m2sci\macros\cb_m2sci_gui.sci line 163 )

save: Wrong type for input argument #2: A String expected.

Doug
Loading...