Skip to content

Commit

Permalink
Merge pull request #152 from baggepinnen/realfreq
Browse files Browse the repository at this point in the history
restrict `w` to be real in FRD
  • Loading branch information
baggepinnen committed Jun 14, 2024
2 parents 11efd74 + 03ecfee commit 11c4251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/frd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ControlSystemsBase: feedback
FRD(w, r)
Represents frequency-response data. `w` holds the frequency vector and `r` the response. Methods defined on this type include
- `+-*`
- `+,-,*`
- `length, vec, sqrt`
- `plot`
- `feedback`
Expand All @@ -16,7 +16,7 @@ If `r` represents a MIMO frequency response, the dimensions are `ny × nu × nω
An object `frd::FRD` can be plotted using `plot(frd, hz=false)` if `using Plots` has been called.
"""
struct FRD{WT<:AbstractVector,RT<:AbstractArray} <: LTISystem{Continuous}
struct FRD{WT<:AbstractVector{<:Real},RT<:AbstractArray} <: LTISystem{Continuous}
w::WT
r::RT
end
Expand Down

0 comments on commit 11c4251

Please sign in to comment.