patchGNU Octave - Patches: patch #9179, [octave forge] (control) dcgain.m

 
 

patch #9179: [octave forge] (control) dcgain.m

Submitted by:  None
Submitted on:  Wed 30 Nov 2016 04:29:04 PM UTC  
 
Category: Forge : new functionPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: NoneOriginator Email: -unavailable-
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 30 Mar 2018 08:05:13 AM UTC, comment #4:

I added the documentation and tests. This can be closed.

Alexander Wilms <alexanderw>
Fri 30 Mar 2018 05:50:05 AM UTC, comment #3:

Should this be closed as "won't do" since the control package already has @lti/dcgain.m?

Mike Miller <mtmiller>
Project Administrator
Fri 16 Feb 2018 04:11:06 PM UTC, comment #2:

There's already https://sourceforge.net/p/octave/control/ci/default/tree/inst/@lti/dcgain.m

The list of missing functions needs to be updated. Could the only implementation of dcgain automatically be called when no arguments have been supplied (which would call print_usage)?

The existing implementation could reuse the help text and tests of the patch, though.

Alexander Wilms <alexanderw>
Sun 01 Jan 2017 07:52:03 PM UTC, comment #1:

Thank you for the contribution.

I think the documentation is misformatted. Check to see if it all shows up when you type `help dcgain`.

Also, could you add some unit tests to help users verify that the function works?

Nir Krakauer <nir_krakauer>
Wed 30 Nov 2016 04:29:04 PM UTC, original submission:

Implements the dcgain function for the control toolbox.

## Compute the DC gain k of a linear time invariant (LTI) system
##
## Transfer function for a continuous state space system (A,B,C,D)
## G(s) = C * inv(sI - A) B + D
##
## DC Gain: evaluate G(s) as s -> 0
## k = C * inv(-A) * B + D
##
## Transfer function for a discrete state space system (A,B,C,D,T)
## G(z) = C * inv(zI - A) B + D
##
## DC Gain: evaluate G(z) as z -> 1
## k = C * inv(I-A) * B + D

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #39358:  dcgain.m added by None (2KiB - application/octet-stream - Apologies for the error in formatting the help function. This is now corrected in the attached new version, which also contains three unit tests to confirm correct operation. Geraint)
file #39111:  dcgain.m added by None (2KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by alexanderw (Posted a comment)
  • -unavailable- added by nir_krakauer (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Mar 2018 04:04:18 PM UTCmtmillerStatusWont Do=>Done
    Fri 30 Mar 2018 04:03:31 PM UTCmtmillerStatusNeed Info=>Wont Do
      Open/ClosedOpen=>Closed
    Fri 30 Mar 2018 05:50:05 AM UTCmtmillerStatusNone=>Need Info
      Summarydcgain.m: control toolbox=>[octave forge] (control) dcgain.m
    Tue 03 Jan 2017 08:55:38 PM UTCNoneAttached File-=>Added dcgain.m, #39358
    Wed 30 Nov 2016 04:29:04 PM UTCNoneAttached File-=>Added dcgain.m, #39111

    Back to the top


    Powered by Savane 3.1-cleanup1