<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
You are right. <br>
<br>
I fixed this bug a few weeks ago in the 5.2 branch. I have just added a
non-regression test and add an item in the changes file.<br>
<br>
Best regards.<br>
<br>
On 28/03/2010 14:01, shankhs ch wrote:
<blockquote
 cite="mid:2b2ecc681003280501h5573664ah1ff2f462fde46759@mail.gmail.com"
 type="cite">
  <div>HI</div>
  <div>I reproduced the bug using the program given in the 5466 bug
page <a moz-do-not-send="true"
 href="http://bugzilla.scilab.org/show_bug.cgi?id=5466">http://bugzilla.scilab.org/show_bug.cgi?id=5466</a> :</div>
  <div> </div>
  <div>A = sprand(400,400,0.01);<br>
B = sprand(100,100,0.1);<br>
unix('rm test_matfile.mat'); // be sure not file like this one exists<br>
savematfile('test_matfile.mat','A','B');<br>
clear<br>
loadmatfile('test_matfile.mat','A','B');<br>
size(A)<br>
size(B)</div>
  <div>clear<br>
A = rand(10,10);<br>
savematfile('test_matfile.mat','A');<br>
clear<br>
loadmatfile('test_matfile.mat','A');<br>
size(A) // It should display a size like 400 x 400 instead of 10 x 10<br>
                    </div>
  <div>The output is indeed 400. 400. But the logic says that it should
be 10. 10. isn't it?</div>
  <div>I think I have identified the problem which is :</div>
  <div>"deletion"/"creation of another file with the same name(
test_matfile.mat )" fails once the file is "created"/"if present in the
directory as a result of previous execution" using the <strong>unix('rm
test_matfile.mat'); </strong>command.</div>
  <div>Moreover the file is getting appended instead of getting created
fresh everytime which is causing the complained behavior.To check this,
run the above program and execute a number of times , check the
filesize after every execution.</div>
  <div> </div>
  <div>I wanted to write this one in the bug page but since this is my
first time and I am new to scilab so I thought its better to ask you
guys.</div>
  <div>Any thoughts and advices?</div>
  <div> </div>
  <div>Thanks and regards</div>
  <div>shankhs</div>
</blockquote>
<br>
</body>
</html>