Releases: lmendo/MATL
Some additions
Function Xh
: &
defined as 2$
Octave compatibility with str2double
. In Matlab, str2double
linearizes char input into a row, whereas in Octave it doesn't. This has been solved.
Added text "bitwise" (in addition to "bit-wise") for searching
Added function YQ
(rat
: rational approximation)
Some image processing functions added
U
(str2num
) in Octave now doesn't recognize 'e'
as the number e, to match MATLAB's behaviour
ZI
: image processing functions. Only two added for now.
Various additions
5
as second input in Z%
was interpreted incorrectly. This has been corrected
Second input in Y%
can now be numbers, as in Z%
Included source files for spec
Defined &
for YD
Xi
(urlread
) now prepends 'http://'
to input string if it doesn't contain '://'
(
with element-wise indexing now replicates scalar data if needed
X(
with element-wise indexing now replicates a single data value or array if needed
Yb
now accepts a cell array of strings as cell input, and then it returns a cell array of cell arrays of strings
Xd
: with 2 inputs and 1 output, if the second input is true it selects all diagonals from the first input
Linear-like indexing; sound reproduction
- Element-wise indexing for functions
)
,X)
,(
,X(
. - Inputs
F
andT
withXx
are now interpreted as2.5
and10
respectively - New function
Y#
:sound
,soundsc
,audiowrite
.
Improvements in generated code
Prevent warning when loading help file.
Make sure that the cleanup portion of the compiled code (resetting warnings, colormaps, and the diary) is executed even if the program gives an error.
Thanks, @suever! for both changes!
Improved Octave support for `u` and `Xu`
Added Octave support for 'first'
(this was default anyway) and 'last'
inputs to u
(unique
) and Xu
(unique(...'rows'
)
MATL Online interpreter
Added links to MATL Online. Thanks to @suever for creating it!
Octave compatibility for `&)`
Another Matlab / Octave difference has been identified and solved:
Matlab:
y = [1 3 5; 2 4 6]; y([1 3 5]) = []
y =
2 4 6
Octave:
y = [1 3 5; 2 4 6]; y([1 3 5]) = []
y =
2
4
6
The pattern seems to be: if ~isvector(y)
Matlab reshapes as a row, whereas Octave reshapes as a column.
This is now solved by explicitly reshaping as a row in that case
Various changes; see description
- Change in the
XG
function: with only one input, if the input is complex the axis scales are equal - In
Za
the third input can now also be a logical scalar, and then it's interpreted like the second input - The compiler was not deleting the compiled file properly (more details in https://chat.stackexchange.com/transcript/message/34122132#34122132; thanks to @suever)
Various changes; see description
- Changes to
Z#
:&
defined as2$
. The default file is not initially deleted. If the file exists, this function overwrites it by default - Corrected a bug in
Zt
that produced an error for numeric input when the pattern to be replaced was at the end of string (for example,[1 2 3 1 2][1 2]0Zt
gave an error) - Corrected a bug in Octave's
str2num
- Extended
Zj
with two-output version (secondary default): gives real and imaginary parts X=
(isequal
) now works for0
or1
inputs too.&
corresponds toN$
- Extended
U
with second output indicating succcess of the conversion - Included "power" in the description of
W
for easier search. Thanks to @DJMcMayhem