double in a "gain" function
1 view (last 30 days)
Show older comments
clf; M = 2; num = ones(1,M)/M; [g,w] = gain(num,1); plot(w/pi,g);grid
can you fix this please. The double value of num will not process through the gain function and I don't know what to do. It says: Undefined function 'gain' for input arguments of type 'double'.
0 Comments
Answers (1)
Adam
on 11 Nov 2014
Edited: Adam
on 11 Nov 2014
What is gain?
Type:
which gain
on the command line. If it doesn't point to a function file then you presumably need to add whatever it is to your path. The error message for that is always a little misleading and has nothing to do with 'double', that is just the default type for matlab arguments so it always says unknown for double if the function just doesn't exist on the path at all.
7 Comments
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!