[scilab-Users] problem with loadmatfile

Peter Hinow hinow at uwm.edu
Sat Oct 24 18:46:52 CEST 2009


Dear Mathieu,

thank you for your mail. The matlab files were produced by matlab version 6, but I didn't specify any format in which they were to be saved. That was at another institution, I don't have matlab any longer. The data are in the form of large, sparse matrix. Interestingly, although scilab reads many different very small numerical values, the zero/nonzero pattern is still correct (at least for a couple of examples). So I found a way to work around.

Best regards,
      Peter

----- Original Message -----
From: "Mathieu Dubois" <mathieu.dubois at limsi.fr>
To: users at lists.scilab.org
Sent: Saturday, October 24, 2009 5:28:20 AM GMT -06:00 US/Canada Central
Subject: Re: [scilab-Users] problem with loadmatfile

Hello Peter,

First of all loadmatfile works only with Matlab V6 file format. Under
Matlab there is an option to the 'save' function to specify that you
want V6 file format (see Matlab help).

Secondly do you have different values for True and False values? For
instance if you get very low values for False elements (and 7.749e-304 
is rather close to 0) and higher values for True elements (close to 1) 
you could write a conversion function...

Hope that helps,
Mathieu

Le 23/10/2009 00:48, Peter Hinow a écrit :
> Dear scilab users,
> I am trying to load data from a .mat file that was created by matlab using loadmatfile. It works fine to load integers. However, I also want to load some boolean variables that matlab stores as "0" and "1". When I load them with loadmatfile, I get values such as 7.749-304. Why is that so and what can be done?
> Thank you for your help and best regards,
>        Peter
>



More information about the users mailing list