Releases: lmendo/MATL
Releases · lmendo/MATL
Various changes; see description
- Added
Za
function: convert numbers from base to base - Improved
U
(str2num
) to allow conversion to more general literals - Improved two-input version of
!
(permute
). Second input can now be a scalar - Changed the order of second and third optional inputs of
o
(convert to double precision
array). Padding is not on the left by default
Yo
applied to strings or cell arrays changes caseZ"
(blanks
) now accepts vector input- Bug corrected in parser: space was not recognized as separator in colon literals
Z#
(fwrite
) now converts the file name to char if needed, and deletes file "inout" at the
beginning of the program
- Octave compatibility:
max
andmin
now allow first and second input to be char - Comma can no longer be used as a separator. Use space or newline instead
- Function
Y}
(cell2mat
) has been unified withg
(logical
) Yf
(prime factors) now returns an empty array for input 1Xd
(diag
/spdiags
) now has one input by defaultXd
with several inputs or outputs (spdiags
) now allows char inputsYG
when used asimwrite
now adds extension '.png' to filename if it contains no extension
Various changes
Yk
(closest value) now includes a third output with indices of selected valuesZ^
(Cartesian power) now allows inputs in reverse order if the second is an array of at least two elementsm
(ismember
) andu
(unique
) now accept numeric content in cell array inputZ+
(2D convolution; see alsoY+
) now produces output the same size as the input- Bug corrected in
e
(reshape
) forlogical
input - Modular indexing has been added, only for scalar indices (thanks to @dennis for the suggestion)
- Bug corrected in
ZA
. In addition, now it allows cell array input, and ignores non-recognized digits o
with cell input now allows specifying fill value and padding sideZ}
(split array) now by default splits along the first non-singleton dimension- Added
W
function: 2 raised to input, element-wise - Updated the Fibonacci example in the documentation (1 byte fewer using
y
), and included the new features YS
(circshift
) now allows second input to be a vector with third input specifying dimension when first input is a 2D arrayXd
(diag
) now includesspdiags
functionalityformat
function has been integrated withZG
h
(horizontal concatenation) andv
(vertical concatenation) now linearize their inputs if sizes don't match
Quite a few changes
bitand
,bitor
andbitand
now allow both inputs to be char arrays.bitxor
doesn't havebitcmp
functionality anymore (it may be added in the future as a separate function)e
(reshape
) now has two inputs by default, and in that case adds a final implicit[]
input. For size specification not matching input size it pads with values depending on input type or trims input- Added function
X@
to push current index of "for" loop XB
now automatically converts input to logical; and works for cell array input (likeZB
)- Added function
Yk
: gives closest value in second input to each value in first input Yb
(strsplit
) andZc
now include a numeric-input modeXO
(datestr
) andZO
(datevec
) now take two inputs by default- Improved two-array mode of
S
(sort
) - Former first input of
ZG
(control appearance of graphics) is now the last input S
(sort
) now works on cell arrays of numeric arraysc
(char
) with cell array input now allows no-char cell contents. They automatically converted to charo
(double
) with cell array input now works in an analogous way tochar
: converts cell contents to double, pads with zeros if needed and concatenates verticallyv
(vertical concatenation) now takes as inputs all stack contents, by default
Various changes; see description
- Corrected bugs in set functions that produced column result when it should be a row
- Corrected bug in "next prime" function (no output was produced for certain inputs)
cumsum
andcumprod
now allow maximum and minimum values- Extended
XE
(replace) function for cell arrays - Added
XM
(mode) function - Added distance functions to
pdist2
in Octave - Modified the behaviour of
Xn
(nchoosek
). AddedXN
(nchoosek
forcing first input to be interpreted as an array)
Various changes (see description)
- Added predefined literal
' ':'~'
- Improved compatibility of Octave's
disp
function with that of Matlab: empty arrays now produce no displayed output at all - Extended Octave's
str2func
function so it works as Matlab's. This is needed forXQ
(accumarray
function), so that it properly works on Octave - Octave compatibility: chars can now be converted to logical
prod
functions can now takechar
inputpadarray
now allowschar
andlogical
inputs- Bug corrected in
Xn
(nchoosek
) when first input is an array and second is1
YC
(im2col
) now allows char input in Octave. Also, in Octave it gives empty output (like Matlab, and instead of an error) if block size is too large- Fixed trailing decimals equal to zero that are sometimes produced by Octave with symbolic output
Ya
(padarray
) now allows the first input to be char in Matlab (as in Octave)- New function
E
that multiplies by 2 YS
(circshift
) now applies the shift along the first non-singleton dimension by default- The three-input version of
YS
didn't work in Octave. Now it does
13.0.0: Various changes; see description
- Added function
X#
, which displays the current stack contents, for debugging - Added function
XE
, which replaces elements in a numeric or char array - Changes in initial contents of clipboard L
- Updated documentation with 2-output mode of
)
,Y)
andZ)
. - Removed unwanted whitespace from symbolic output in Octave
dec2bin
anddec2base
now allow char input in Octavefloor
andceil
have been integrated withlower
andupper
Y$
(vpa
) now has two inputs by defaultpadarray
function added
12.1.1: Updated help and documentation
Corrected help information for YG
. Updated documentation
12.1.0: Various changes (see description)
- Expanded functionality of
sort
: two-array mode, for sorting one array using the order determined from sorting the other - Added predefined literals
- Expanded funcionality of
)
Y)
Z)
to split arrays - Corrected run-length encoding with cell arrays and with empty input
- The default number of outputs in
ndgrid
is now the number of inputs - The input to
str2num
is automatically converted to char if it's not char - New
Xv
function to remove blanks YG
has been extended withimshow
andimwrite
functionality#
has a new mode to specify single output
12.0.1
12.0.0: Several small changes; see description
- Inputs to
conv2
(functionsY+
andZ+
) are automatically converted todouble
) - Added initial contents in clipboard L:
1440
,[31 28 31 30 ... 31]
,[31 29 31 30 ... 31]
,2*pi
, gamma (Euler-Mascheroni constant), phi (golden ratio) - Second input of
strjoin
andstrcat
can be numeric, and in that case it's automatically converted to char - First and second inputs of
strcmp
andstrncmp
can be numbers, and in that case they are automatically converted to char Yf
with negated input avoids1
in resultstrfind
andstrrep
can be used with numeric inputsrot90
now has two inputs by default