@kw_martin wrote:
I have a function definition:
function simBiquad(xin::Array{ComplexF64,1}, A::Array{Array{Complex{Float64},2},1}, B::Array{Array{Complex{Float64},2},1}, C::Array{Array{Complex{Float64},2},1}, D::Array{Array{Complex{Float64},2},1})
I call the function in the REPL using:
@enter simBiquad(xin,A,B,C,D);
and get the error message:
ERROR: MethodError: no method matching simBiquad(::Array{Complex{Float64},1}, ::Array{Array{Complex{Float64},2},1}, ::Array{Array{Complex{Float64},2},1}, ::Array{Array{Complex{Float64},2},1}, ::Array{Array{Complex{Float64},2},1}) Closest candidates are: simBiquad(::Array{Complex{Float64},1}, ::Array{Complex{Float64},1}, ::Array{Complex{Float64},1}, ::Array{Complex{Float64},1}, ::Array{Complex{Float64},1}) at /home/martin/Dropbox/Matlab/Complex/KM_ComplexFilterToolbox/juliaFiles/LpFlt.jl:39
As you can see the first argument has type ::Array{Complex{Float64},1} which matches, and the other arguments (A,B,C, and D) have the types ::Array{Array{Complex{Float64},2},1} which matches the function declaration line, but the error message states that types ::Array{Complex{Float64},1} are expected even though the function declaration states Arrays of Arrays are expected. I can’t see what I am doing wrong; if someone else sees what my error is, any help would be appreciated. I’m hoping this might be something of general interest as I’m guessing it’s a scenario that will be common in realizing filter simulations. Thank you.
Posts: 7
Participants: 5