필터 지우기
필터 지우기

about freqs_m function

조회 수: 3 (최근 30일)
ahmed allaheani
ahmed allaheani 2018년 2월 4일
답변: ahmed allaheani 2018년 2월 5일
[N,Wn]=buttord(8000*pi,32000*pi,1.421,22.380,'s')
[B,A]=butter(N,Wn,'s')
freqs(B,A)
[db,mag,pha,w]= freqs_m(B,A,36000*pi);
subplot(2,1,1);
plot(w/(2000*pi),db);
xlabel('frequency in KHZ');
ylabel('Magnitude in db')
grid on;
subplot(2,1,2);
plot(w/(2000*pi),pha);
xlabel('frequency in KHZ');
ylabel('phase in radians/s'); grid on;
% error message
Undefined function or variable 'freqs_m'. Error in hw1p6 (line 7) [db,mag,pha,w]= freqs_m(B,A,36000*pi); >>

답변 (3개)

Star Strider
Star Strider 2018년 2월 4일
You have to download freqs_m (link) from Code Forge.

Jan
Jan 2018년 2월 4일
The message is clear: The folders of the Matlab path do not contain this file. Most likely you want to download it at first, e.g. from FEX: digital-signal-processing-using-matlab . Then add the folder, which contains this function to the path:
addpath(FolderName, '-end')
To store the modified path permanently, use
savepath
Both can be done by a GUI also:
pathtool

ahmed allaheani
ahmed allaheani 2018년 2월 5일
thank you very much guys. the code is working perfectly

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by