Problem with row insertion in empty matrix
Reported by Steer Serge
-- Bug description --
Problem with row insertion in empty matrix
-- Scilab error message --
None but results are wrong
-- How to reproduce the bug --
A=[];A(:,$)=1 //returns 1 instead of an error
A=[];A(:,$+1)=1 //returns [0 1] instead of 1
A=[];A(:,$+2)=1 //returns [0 0 1] instead of [0 1]
but
A=[];A($,:)=1 //returns an error ok!
A=[];A($+1,:)=1 //returns 1 ok!
A=[];A($+1,$+1)=1 //returns 1 ok!