Possible Bug in resize_matrix.

bhargav vaidya coolastro at gmail.com
Thu Jun 17 00:09:39 CEST 2010


Hello everyone...

I am trying to resize my matrix which has number of rows as 400 and no of column is 1.
to  a new matrix which should be 20 X 20. So I decided to use the "resize_matrix" function with Scilab... but it seems there is problem in it.

So here is the sample test case

-->H = rand(4,1)
 H  =
 
    0.2113249  
    0.7560439  
    0.0002211  
    0.3303271  
 
-->G = resize_matrix(H,2,2)
 G  =
 
    0.2113249    0.  
    0.7560439    0.  
 

which is not correct ...and please let me know if I am doing anything wrong or this is the possible bug in the code.?

Regards

Bhargav vaidya 


More information about the users mailing list