[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Should interp1 fail on invalid input?
From: |
Kim Hansen |
Subject: |
Should interp1 fail on invalid input? |
Date: |
Fri, 1 Jun 2007 09:10:11 +0200 |
Hi all,
I have had some problems where interp1 returns bad data because the
input it gets has duplicate x values (garbage in, garbage out). Would
it be possible to change interp1 to fail in this case?
I have attached a patch:
2007-06-01: Kim Hansen <address@hidden>
* general/interp1.m: Fail in linear interpolation if X is not
strictly monotonic.
--
Kim Hansen
Vadgårdsvej 3, 2.tv
2860 Søborg
Fastnet: 3956 2437 -- Mobil: 3091 2437
interp1-error.diff
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Should interp1 fail on invalid input?,
Kim Hansen <=