Releases: lmendo/MATL
Releases · lmendo/MATL
Some corrections in the specification document
19.5.1 Some corrections in the specification document
Several changes; see description
YA
andZA
(dec2base
,base2dec
): if second input is a negative number -n: it is interpreted as symbols 0:n-1 (case ii)c
: sparse input is converted to full- Corrections in
XX
(regexp
) with multiple outputs Xx
(clc
) extended with 1-input version that includespause
1ZG
(axis
) now allows flag strings in inputs to be replaced by numbersYr
(randi
) now has two inputs as secondary default specification. With 2 inputs, if the second input is a scalar n it is interpreted as [1 n]- Changed the order of inputs of
Xl
Added divisors function, and another small correction
Z\
(divisors) function added. Thanks to @DJMcMayhem for the suggestion- Correction in symmetric range (
Zv
) with non-integer input
Some improvements
Yc
now acceptslogical
inputs- Fixed a bug in
Zr
with string input when running on Octave Xz
now allows char array inputg
(logical
) now accepts complex input (and uses its absolute value)Zv
with numeric input now produces symmetric range: 3 -> [1 2 3 2 1]; -3 -> [3 2 1 2 3].i
can also be used in addition toj
for imaginary unit in numerical array literals, user input and in inputs toU
Semi-modular indexing for assignment, and other improvements
- Command-line help for
T
andF
. - Some errata corrected in help
- Behaviour of
Xl
(clamp) with 2 inputs changed - Octave compatibility:
Yd
(blkdiag
) now acccepts char inputs, like Matlab - Corrected
Zt
(strrep
). If first input is char or a cell array, numerical second and third inputs are converted to char. - Avoid paging output in Octave, so that it honours pauses etc. Thanks, Suever!
- In
Z@
(randperm
), if first input is char it is interpreted as population (not as size) - Octave compatibility for
strcat
: a single string as input removes trailing space - Semi-modular indexing for assignment
Various
&
has been defined forY"
(repelem
, run-length decoding) as3$
- Fix to make
imwshow
not rescale in Octave. The fix only works in some platforms - Octave compatibility:
mat2str
(&D
) now handles char input with printable characters. - Bug corrected in
v
(vertcat
) andh
(horzcat
): they wrongly linearized the output when one of the inputs was empty - First input of
XQ
(accumarray
) can now be char - Third input of
XE
can now have a single element - Defined
Xl
: clamp/max function
See description
YA
(dec2base
) andZA
(base2dec
) now allow0
,1
,F
(false
),T
(true
) as abbreviations of 10, 16, 0:9, 0:15 respectively- Corrected two bugs in
Zt
(strrep
): logical input was not accepted in Octave, and overlapping patterns gave wrong results +
in code no longer sticks to a following numeral. So H5+6 now gives7 6
instead of2 5 6
. (+
within literals does stick as it used to:[4 +5]
is the same as[4 5]
, and[4+5 1]
is[9 1]
).- Corrected a bug which was causing the option
-l
of the main program not to work - Second input of
Za
can now beT
orF
.T
is interpreted as' ':'~'
(all printable ASCII chars) andF
as[' ':'&' '(':'~']
(all printable ASCCII chars except single quote) - Function
Z=
(strncmp
) has been removed - Added predefined literals in
L
:[1 .5j]
[1 .5+.5j]
[1+.5j 1j]
[.5+.5j 1j]
(meant for end-based indexing)
Various improvements (see description)
D
has been extended with "string representation" functionality, likemat2str
but also working for cell arrays (using http://stackoverflow.com/a/38553646/2586922). Unlikemat2str
in Matlab, this produces''
,[]
or{}
for empty arrays, depending on its type, and regardless of dimensionsX>
(max
),X<
(min
),Y>
(cummax
) andYz
(cummin
) now return char output for char input. Flags'omitnan'
and'includenan'
are not supported- New predefined contents for clipboard
L
(2j*pi
and values for 4Dpermute
) - Defined
&
forZ$
(read file) - Defined
&
asFFT#
forYk
- In
YO
with 2 inputs, if the second input is numeric it is interpreted as a format specifier as indatestr
- Bit-wise operations now allow negative values. Values should be of type
double
and in the range from -2^52 to 2^52-1
Various changes; see description
- Corrected bug in RLE for empty input
- Function
o
with cell string input now pads to the right by default Yv
(strtrim
) with char array input now counts char 0 too as insignificant whitespace- Octave compatibility:
YX
(regexeprep
) now allows fourth input equal to1
in Octave &
has been defined asFT#
forXS
(sortrows
)Z%
(typecast
) now allows second input to be a number- Extended
Ya
to unpad arrays YO
,ZO
now take one input by default and two as alternative default- Changed order of perdefined contents of clipboard
L
.1L
and2L
are interchanged with9L
,10L
See description
X[
now has a default number of outputs equal to the number of elements of first input- Corrected bug in
X[
, which gave an error when used with one output - Defined
&
foro
as2$
- In
colormap
,imshow
andimwrite
, colormaps with some entry greater than 1 are normalized by converting to uint8, then to double, and then dividing by 255. - Added a predefined literal in function
Y2
- The compiled file now includes
tic
at the beginning :
with 1 char input uses space as initial value (until now it issued an error)- Bug corrected in
o
with cell input. Now empty arrays produce a row of fill values n
with more than one output (or one output different than the first) gives the size along those dimensions.&
is defined as specifying a number of outputs equal to the number of dimensions. So&n
gives the size split in numbers.Zs
now gives the covariance matrix if second input is 3 or 4