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

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

[Octave-bug-tracker] [bug #57132] [octave forge] (control) step: size of


From: Doug Stewart
Subject: [Octave-bug-tracker] [bug #57132] [octave forge] (control) step: size of output y is not same as the size of input t
Date: Thu, 31 Oct 2019 09:50:12 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36

Follow-up Comment #6, bug #57132 (project octave):

Here is a minimal example using names that are used in the code.


T = (0:0.01:0.8)';

tfinal=T(1:60)
numel(tfinal)

#line 106 of __time_response__.m
dt = abs (tfinal(end) - tfinal(1)) / (length (tfinal) - 1);

tfinal=tfinal(end)
dt

#line 129 of __time_response__.m
numel(linspace (0, tfinal, tfinal/dt+1))



I think I will add some code to avoid these conversions when the input is a
vector.
Any thoughts?



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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