Skip to content

Releases: lmendo/MATL

Some additions

15 May 16:07
Compare
Choose a tag to compare

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

14 Apr 22:55
Compare
Choose a tag to compare

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

30 Mar 20:17
Compare
Choose a tag to compare

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

17 Feb 18:52
Compare
Choose a tag to compare
  • Element-wise indexing for functions ),X), (, X(.
  • Inputs F and T with Xx are now interpreted as 2.5 and 10 respectively
  • New function Y#: sound, soundsc, audiowrite.

Improvements in generated code

27 Jan 12:39
Compare
Choose a tag to compare

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`

27 Jan 00:30
Compare
Choose a tag to compare

Added Octave support for 'first' (this was default anyway) and 'last' inputs to u (unique) and Xu (unique(...'rows')

MATL Online interpreter

20 Jan 19:33
Compare
Choose a tag to compare

Added links to MATL Online. Thanks to @suever for creating it!

Octave compatibility for `&)`

11 Jan 00:59
Compare
Choose a tag to compare

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

15 Dec 01:54
Compare
Choose a tag to compare

Various changes; see description

06 Dec 01:04
Compare
Choose a tag to compare
  • Changes to Z#: & defined as 2$. 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 for 0 or 1 inputs too. & corresponds to N$
  • Extended U with second output indicating succcess of the conversion
  • Included "power" in the description of W for easier search. Thanks to @DJMcMayhem