bugGNU Octave - Bugs: bug #59441, [octave forge] (control)...

 
 

bug #59441: [octave forge] (control) 'stepDataOptions' function not available

Submitted by:  Diaa <dabidou>
Submitted on:  Tue 10 Nov 2020 05:14:17 PM UTC  
 
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Need Info Assigned to:  None
Originator Name:  Diaa Open/Closed:  Open
Release:  6.0.92 Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 17 Nov 2020 10:19:32 PM UTC, comment #5: 

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

Torsten Lilge <ttl>
Project Member
Tue 17 Nov 2020 03:30:00 PM UTC, comment #4: 

lsim is a completely alternative approach to step with its stepDataOptions

comment #3:

> @doug - in the absence of the opt structure, can equivalent options be passed to step or implemented another way?

Diaa <dabidou>
Tue 17 Nov 2020 03:17:05 PM UTC, comment #3: 

@doug - in the absence of the opt structure, can equivalent options be passed to step or implemented another way?

Nicholas Jankowski <nrjank>
Tue 17 Nov 2020 09:47:00 AM UTC, comment #2: 

I would like to recreate this answer of having one step input and another constant.

https://www.mathworks.com/matlabcentral/answers/336224-is-it-possible-to-use-step-for-a-state-space-dynamic-system-with-multi-input#answer_263748

Diaa Abidou

comment #1:

> the step function in the control package currently does not take options from a 'opt' data object like the Matlab version, hence there is no stepDataOptions function to create that object. 
>
> in the meantime, what options are you trying use in step?

Diaa <dabidou>
Tue 17 Nov 2020 12:27:15 AM UTC, comment #1: 

the step function in the control package currently does not take options from a 'opt' data object like the Matlab version, hence there is no stepDataOptions function to create that object. 

in the meantime, what options are you trying use in step?

Nicholas Jankowski <nrjank>
Tue 10 Nov 2020 05:14:17 PM UTC, original submission:  

error: 'stepDataOptions' undefined near line 1, column 1

The 'stepDataOptions' function belongs to the control package from
Octave Forge but has not yet been implemented.

Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.

Diaa <dabidou>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by nrjank (pkg maintainer)
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by dabidou (Submitted the item)
  • -email is unavailable- added by dabidou
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-11-17 nrjank Carbon-Copy- => Added dastew
    2020-11-17 siko1056 StatusNone => Need Info
        Summary'stepDataOptions' function of control package is not available => [octave forge] (control) 'stepDataOptions' function not available
    2020-11-10 dabidou Carbon-Copy- => Added diaa.abidou@gmail.com

    Back to the top


    Powered by Savane 3.5