view .editorconfig @ 28502:39e6308e4251

polyfit.m: Overhaul function (bug #57964). * polyfit.m: Rewrite documentation and add example code. Reshape all inputs into column vectors for Matlab compatibility. Validate number of points in x and y are the same. Force logical input N to be a row vector (no test previously). Validate that requested polynomial degree, N, can be achieved given size of data; issue a warning if it cannot and calculate a solution based on the lowest polynomial powers (x^0, x^1, ...). Test "isargout (2)" to avoid unnecessarily calculating complex outputs. Correctly size outputs s.R, s.C even when there is insufficient data. Correctly restrict degrees of freedom output to range >= 0. Add BIST tests for logical input N. Add BIST test for orientation of output. Add BIST test for insufficient data. Add BIST test for bug #57964. Add BIST tests for input validation.
author Rik <rik@octave.org>
date Thu, 25 Jun 2020 15:22:37 -0700
parents 640ee0d531d0
children
line wrap: on
line source

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true

[*.{am,mk}]
indent_size = tab
indent_style = tab