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

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

[Octave-bug-tracker] [bug #59441] [octave forge] (control) 'stepDataOpti


From: Torsten Lilge
Subject: [Octave-bug-tracker] [bug #59441] [octave forge] (control) 'stepDataOptions' function not available
Date: Tue, 17 Nov 2020 17:19:32 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36

Follow-up Comment #5, bug #59441 (project octave):

To my knowledge, there are no options for step which would give equivalent
results as the stepDataOptions.

For the value "InputOffset" (only suitable for stable systems), the static
response has to be computed as initial value for the step of overall height
"InputOffset"+"StepAmplitude". Therefore, a workaround could look like


% example system
sys = tf([1 2],[1 1 1]);
InputOffset = 1;
StepAmplitude = 2;

% the modified "step" function
if (InputOffset == 0 || isstable (sys))
  
  % system in state space
  sys_ss = ss (sys);

  % steady state as initial value of step
  x_steady_state = -inv(sys_ss.a)*sys_ss.b*InputOffset

  % simulate the step
  [y,t,x] = step (sys);  % only to get a suitable t vector
  lsim (sys, StepHeight*ones(size(t)), t, x_steady_state)

endif



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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