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

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

[Octave-bug-tracker] [bug #55394] function find returns out of bound 2 (


From: Rik
Subject: [Octave-bug-tracker] [bug #55394] function find returns out of bound 2 (note: variable 'find' shadows function)
Date: Fri, 4 Jan 2019 20:13:28 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #55394 (project octave):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Note the warning message.  You have a variable called find which is being used
instead of the function of the same name (shadow).  You need to clear that
variable (probably rename it) before find can work again.  Sample code below.


find = [1, 2];  # declare variable which shadows find()
A=[1,1,2,2];
idx=find(A == 2) 
clear find
idx=find(A == 2) 

 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55394>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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