[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41035] splines: Bad matrix size for 'not-a-kn
From: |
Marco Guazzone |
Subject: |
[Octave-bug-tracker] [bug #41035] splines: Bad matrix size for 'not-a-knot' condition and n==4 |
Date: |
Mon, 30 Dec 2013 10:50:55 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 |
URL:
<http://savannah.gnu.org/bugs/?41035>
Summary: splines: Bad matrix size for 'not-a-knot' condition
and n==4
Project: GNU Octave
Submitted by: sguazt
Submitted on: Mon 30 Dec 2013 10:50:54 AM GMT
Category: Octave Forge Package
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
Hello,
There is a bug in splines package (v. 1.2.6) for the case of 'not-a-knot'
spline and when the number of nodes (n) is equal to 4.
Test case:
x = [0 1 2 3]
y = [0 0.5 2 1.5]
csape(x,y,'not-a-knot')
This will generate the following error:
_error: horizontal dimensions mismatch (2x1 vs 1x2)_
_error: evaluating argument list element number 1_
_error: called from:_
_error: /home/sguazt/octave/splines-1.2.6/csape.m at line 207, column 20_
To fix this error, you can simply apply the attached patch.
Best,
-- Marco
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 30 Dec 2013 10:50:54 AM GMT Name: csape.patch Size: 407B By:
sguazt
Patch generated with 'hg diff'
<http://savannah.gnu.org/bugs/download.php?file_id=30132>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41035>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41035] splines: Bad matrix size for 'not-a-knot' condition and n==4,
Marco Guazzone <=