<div>HI</div>
<div>I reproduced the bug using the program given in the 5466 bug page <a 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>