changeset 6976:2875627f7565 octave-forge

Fixed bug in findspan
author rafavzqz
date Wed, 07 Apr 2010 16:05:21 +0000
parents 55dad6338f78
children dd59552f6019
files extra/nurbs/inst/findspan.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/extra/nurbs/inst/findspan.m	Tue Apr 06 19:35:22 2010 +0000
+++ b/extra/nurbs/inst/findspan.m	Wed Apr 07 16:05:21 2010 +0000
@@ -36,7 +36,7 @@
 %    You should have received a copy of the GNU General Public License
 %    along with this program.  If not, see <http://www.gnu.org/licenses/>.                                                
 
-if max(u) > U(end) || min(u) < U(1)
+if (any (max(u)>U(end) | min(u)<U(1)))
   error('Some value is outside the knot span')
 end