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: Mike Miller
Subject: [Octave-bug-tracker] [bug #57132] [octave forge] (control) step: size of output y is not same as the size of input t
Date: Mon, 28 Oct 2019 19:51:48 -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

Update of bug #57132 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #2:

I can confirm this. I believe the OP chose these values particularly to show
the error. There might be some kind of round off or truncation error going
on.

Two different ways of initializing the T vector show the same problem:


sys = tf([1 1], [1 4 5]);
T = (0:0.01:0.59)';
y = step (sys, T);
assert (size (y), size (T))


and


sys = tf([1 1], [1 4 5]);
N = 59;
T = (0:N)' ./ 100;
y = step (sys, T);
assert (size (y), size (T))


If the T vector is 59 or 61 elements instead of this example of 60, the output
seems to be correct. Specifically, the same output is produced for t1 and t2
here:


t1 = (0:59)' ./ 100;
y1 = step (sys, t1);
t2 = (0:58)' ./ 100;
y2 = step (sys, t2);
isequal (y1, y2)


    _______________________________________________________

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]