Skip to content

squeeze: return shape of the frequency response. #594

Description

@bnavigator

Something strange about the return shape of the frequency response. For a square 2x2 system:

sys(np.array(0.0), squeeze=False).shape
(2, 2, 1)

sys(0.0, squeeze=False).shape
(2, 2)

Originally posted with the wrong result mapping by @forgi86 in #593 (comment)

Activity

  1. bnavigator commented on Mar 28, 2021

    @bnavigator
    ContributorAuthor

    BTW, omega has to be complex.

    >>> import numpy as np
    >>> from control import rss
    >>> sys = rss(2,2,2)
    >>> sys(np.array(0.0j), squeeze=False).shape
    (2, 2, 1)
    >>> sys(0.0j, squeeze=False).shape
    (2, 2)
    

    Now I am even more confused and will stop for this Sunday evening.

  2. murrayrm commented on Mar 28, 2021

    @murrayrm
    Member

    Sorry, accidentally closed.

  3. forgi86 commented on Mar 29, 2021

    @forgi86
    Contributor

    @bnavigator as far as I can see looks like you can pass real/complex/imaginary argument. I would expect the output to be the Laplace/Z transform for ct/dt in general, but haven't really tested!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions