Tue 16 Feb 2016 12:05:42 PM UTC, comment #4:
I can confirm that the other cases do not also need the added .'(:). The attached patch makes that clearer by removing some unnecessary code, which took (1:n-1,:) of vectors that were already row vectors.
The change in 138~139 seems unnecessary because of automatic broadcasting.
(file #36356)
|
Fri 29 Jan 2016 05:09:28 PM UTC, comment #1:
Note:
I was trying to implement the example of MatLab function spline:
It returned an error, and I tried to fix it.
This is my fixed source code.
ChingChuan Chen
|
Fri 29 Jan 2016 05:04:39 PM UTC, original submission:
Hi,
There is a bug in spline.
For the complete case in function `spline`, when n > 2,
(line 138 ~ 139 in source code)
should be
and (line 147~150 in source code)
should be
sincerely,
ChingChuan Chen
|