octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50084] OF geometry: minDistancePoints error w


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #50084] OF geometry: minDistancePoints error when requesting three outputs
Date: Thu, 19 Jan 2017 08:49:33 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

URL:
  <http://savannah.gnu.org/bugs/?50084>

                 Summary: OF geometry: minDistancePoints error when requesting
three outputs
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Thu 19 Jan 2017 09:49:31 AM CET
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
        Operating System: Any

    _______________________________________________________

Details:

(OF geometry 2.1.1)


>> pt1 = [1  1]
pt1 =
   1   1
>> pts = [0 0; 1 0; 1 1; 0 1; 1 2]
pts =
   0   0
   1   0
   1   1
   0   1
   1   2
>> [a, b, c] = minDistancePoints (pt1, pts)
error: 'ind1' undefined near line 211 column 21
error: called from
    minDistancePoints at line 211 column 19


while

>> [a, b] = minDistancePoints (pt1, pts)
a = 0
b =  3


looks to be OK.

The bug lies in the if block at L. 186 that is skipped while in the elseif
clause in L.208+ values from uninitialized variables in that skipped if block
are assigned to varargout.

(package maintainer cc'd - hopefully I got his email right))





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50084>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]