i am a beginner please help me to debug small error

Nbp=[2827.4 0];
Dbp=[1 942.4 4712^2];
Wbp=[0:50:10000];
hbp=freqs(Nbp,Dbp,Wbp);
hbp_mag=abs(hbp);
hbp_phase=angle(hbp);
fbp=Wbp/(2*pi);
hbp_phase=hbp_phase*180/pi;
figure
plot(fbp,hbp_mag)

4 件のコメント

Star Strider
Star Strider 2015 年 1 月 8 日
What is the problem?
The code you posted works without error for me (R2014b).
Image Analyst
Image Analyst 2015 年 1 月 8 日
Please post the entire error message - ALL THE RED TEXT , not just a paraphrased, small part of it like you did.
MOHAMED IHSAN
MOHAMED IHSAN 2015 年 1 月 8 日
thanks a lot for me it still show error like too many argumennt i dont know y
Image Analyst
Image Analyst 2015 年 1 月 8 日
MOHAMED, did you read my comment? I think you did not. If you don't want to, then at least read this: http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer so people can answer your question. Make it EASY for people to help you, not HARD!

サインインしてコメントする。

 採用された回答

Aditya Jain
Aditya Jain 2015 年 1 月 8 日

0 投票

Nbp=[2827.4 0];
Dbp=[1 942.4 4712^2];
Wbp=[0:50:10000];
hbp=freqs(Nbp,Dbp,Wbp);
hbp_mag=abs(hbp);
hbp_phase=angle(hbp);
fbp=Wbp/(2*pi);
hbp_phase=hbp_phase*180/pi;
figure;
plot(fbp,hbp_mag)
The above code works fine for me

1 件のコメント

MOHAMED IHSAN
MOHAMED IHSAN 2015 年 1 月 8 日
thank a lot it is working in 2014a

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by