Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/frd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ ControlSystemsBase.noutputs(f::FRD) = f.r isa AbstractVector ? 1 : size(f.r, 1)
ControlSystemsBase.ninputs(f::FRD) = f.r isa AbstractVector ? 1 : size(f.r, 2)
ControlSystemsBase._default_freq_vector(f::Vector{<:FRD}, ::Any; kwargs...) = f[1].w
ControlSystemsBase._default_freq_vector(f::FRD, ::Any; kwargs...) = f.w
ControlSystemsBase.numeric_type(::Type{<:FRD{<:Any,RT}}) where RT = eltype(RT) # Used by, e.g., the nyquistplot recipe. FRD is not rational, so the recipe computes no poles or zeros
function ControlSystemsBase.bode(f::FRD, w::AbstractVector = f.w; unwrap=true, kwargs...) # kwargs such as balance do not apply to frequency-response data
w == f.w || error("Frequency vector must match the one stored in the FRD")
angles = angle.(f.r)
Expand Down
Loading