comparison NEWS @ 28171:a23da76e0693

Matlab compatibility fixes for coordinate transform functions (bug #57794). * cart2pol.m, cart2sph.m, pol2cart.m, sph2cart.m: Modified to allow row or column vector inputs, remove full matrix single output argument option, and clarified coordinate definitions in help text. * lightangle.m, surfl.m: Fix existing instances where single output was used and a matrix was expected. * NEWS: Added coordinate transform changes to Matlab compatibility section.
author Nicholas R. Jankowski <jankowskin@asme.org>
date Sun, 16 Feb 2020 20:19:05 -0500
parents 37ee7c5cc6b2
children bb929d5a34cb
comparison
equal deleted inserted replaced
28170:5e49ba5bdcc1 28171:a23da76e0693
41 41
42 ### Matlab compatibility 42 ### Matlab compatibility
43 43
44 - The function `griddata` now accepts 3-D inputs by passing data 44 - The function `griddata` now accepts 3-D inputs by passing data
45 directly to `griddata3`. 45 directly to `griddata3`.
46
47 - Coordinate transformation functions `cart2sph`, `sph2cart`,
48 `cart2pol`, and `pol2cart` can now accept either row or column vectors
49 for coordinate inputs. A single coordinate matrix with one variable per
50 column can still be used as function input, but a single output variable
51 will now contain just the first output coordinate, and will no longer
52 return the full output coordinate matrix. Output size matches the
53 size of input vectors, or in the case of an input matrix will be column
54 vectors with rows corresponding to the input coordinate matrix.
46 55
47 ### Alphabetical list of new functions added in Octave 7 56 ### Alphabetical list of new functions added in Octave 7
48 57
49 * `rng` 58 * `rng`
50 59