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

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

[Octave-bug-tracker] [bug #65070] rose() and histc() made some undesired


From: Idar Barstad
Subject: [Octave-bug-tracker] [bug #65070] rose() and histc() made some undesired results
Date: Thu, 21 Dec 2023 14:17:13 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?65070>

                 Summary: rose() and histc() made some undesired results
                   Group: GNU Octave
               Submitter: idar
               Submitted: Thu 21 Dec 2023 07:17:11 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.3.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 21 Dec 2023 07:17:11 PM UTC By: Idar Barstad <idar>
 I used Octave ver6.3 and did the following:


 >>[t1,r1] = rose( [1:1:360]/180*pi , [0:10:350]/180*pi )
 >>polar(ti,r1) 


and got an uneven rose at about 0. Similar code in matlab produces an even
rose.  Shouldn't we get an even rose in Octave also since the background
distribution is even? 

In my attempt to make a fix I also found that 

[bin_counts]=histc(x,edge_vector)

gave the same length for the bin_counts as for edge_vector. I would expect
length(bin_counts) to be one less than length(edge_vector).







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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