error using bandpass and pspectrum function
Show older comments
I am trying to band filter a response saved as .txt file and display the power spectrum
it returns the error : Undefined function 'bandpass' for input arguments of type 'double'.
it returns the same error for pspectrum.
kindly help.
load pop.txt; % brings in ASCII text file containing pressure values
bandpass(pop, [880 1130], fs); % trying to filter the signal for centre frequency 1kHz and fs sampling rate
pspectrum(pop,fs);
1 Comment
madhan ravi
on 13 Apr 2019
Which version of MATLAB are you using ? https://in.mathworks.com/help/signal/ref/bandpass.html#mw_9d77f8b5-23ac-4214-85c6-cf994d61526b_seealso - released in 2018a.
Accepted Answer
More Answers (0)
Categories
Find more on Spectral Estimation 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!