conversion of the last element of an array or matrix (end ~=> $)(6.0.0 regression)
Reported by Stefan Strasser
BUG DESCRIPTION:
----------------
An array (or matrix) contains n elements in 1 row (or column). MATLAB uses the following for addressing the last element, even if the array (or matrix) size is being changed:
mtlb_array = [1 2 3 4 5 6 7];
% last value of mtlb_array:
mtlb_array(end)
=7
In MATLAB, the last value of an array is indexed by 'end'.
In Scilab, the last value is addressed by the following:
sclb_array = [1 2 3 4 5 6 7];
// last value of sclb_array:
sclb_array($)
=7
In Scilab, the last value of an array is indexed by '$'.
ERROR LOG:
----------
not able to translate
HOW TO REPRODUCE THE BUG:
-------------------------
try mfile2sci with the above MATLAB code.
OTHER INFORMATION:
------------------
This bug is also related to the documentation of '$' @ bug 10845: http://bugzilla.scilab.org/show_bug.cgi?id=10845