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

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

[Octave-bug-tracker] [bug #39267] Unable to use findpeaks : Error:subscr


From: Debatri Chatterjee
Subject: [Octave-bug-tracker] [bug #39267] Unable to use findpeaks : Error:subscript indices must be either positive integers or logicals
Date: Mon, 17 Jun 2013 10:50:31 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3)

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

                 Summary: Unable to use findpeaks : Error:subscript indices
must be either positive integers or logicals
                 Project: GNU Octave
            Submitted by: debatri
            Submitted on: Mon 17 Jun 2013 10:50:30 AM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Debatri Chatterjee
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I tried to use "findpeaks" in the following block of 
> code and is getting Error: subscript indices must be either positive 
> integers or logicals. 
> t=[1:400]'; 
> f1=500; 
> f2=4000; 
> fs=24000; 
> ts=1/fs; 
> y1=sin(2*pi*f1/fs*t); 
> y2=sin(2*pi*f2/fs*t); 
> data1=2+(0.2*y1+y2); 
> [pks idx] = findpeaks(data1);




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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