Convert matlab m file to scilab sci format

Lester Anderson lester at arctica1.wanadoo.co.uk
Fri Jun 27 14:32:29 CEST 2008


Hi Vincent

Yes, indeed renaming the file did work in the conversion. Now I need to figure out what the conversion messages mean, as there are clearly some matlab specific ones that scilab can't figure out:

-->mfile2sci();
  ****** Beginning of mfile2sci() session ******
  File to convert: D:/3D_Inver/Gravinv.m
  Result file path: D:/3D_Inver/
  Recursive mode: OFF
  Only double values used in M-file: NO
  Verbose mode: 3
  Generate formated code: NO
  M-file reading...
  M-file reading: Done
  Syntax modification...
  Syntax modification: Done
  Macro to tree conversion...
  Conversion of M-tree...
  L.40: No simple equivalent, so mtlb_fscanf() is called
  !! L.52: Matlab toolbox(es) function tukeywin not converted, original calling sequence used
  !! L.53: Matlab toolbox(es) function tukeywin not converted, original calling sequence used
  !! L.64: Matlab function figure not yet converted
  !! L.64: Matlab function figure not yet converted, original calling sequence used
  !! L.114: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.125: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.140: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.153: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.166: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.179: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.192: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.204: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.216: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.228: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.246: Matlab function figure not yet converted
  !! L.246: Matlab function figure not yet converted, original calling sequence used
  L.252: No simple equivalent, so mtlb_fprintf() is called
  !! L.321: Matlab function ifft2 not yet converted, original calling sequence used
  !! L.323: Matlab function figure not yet converted
  !! L.323: Matlab function figure not yet converted, original calling sequence used
  !! L.326: Matlab function figure not yet converted
  !! L.326: Matlab function figure not yet converted, original calling sequence used
  L.332: No simple equivalent, so mtlb_fprintf() is called
  Conversion of M-tree: Done
  Macro to tree conversion: Done
  Translation may be wrong (see the //!! comments)
  ****** End of mfile2sci() session ******  

I guess it is a case of trying to find the equivakent operation in scilab or a series of functions that will work. I'm guessing that ifft2 for example is a inverse fast fourier transform (might have to find a matlab guide to these things).

Well it's good to know that these matlab files can be converted

Thanks for the help

Lester
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20080627/f0468f85/attachment.htm>


More information about the users mailing list