Demo of bode plot

조회 수: 20 (최근 30일)
Ming Jia
Ming Jia 2019년 8월 12일
댓글: Star Strider 2019년 8월 12일
Hello,
i have tried the demo program "Bode Plot of Dynamic System", but it doesn't work.
The error message is "warning: Error occurred while evaluating listener callback".
Attempt to execute SCRIPT norm as a function:
C:\Users\mji\Documents\MATLAB\norm.m
Error in freqfocus>LocalAdjustFocus (line 343)
if isnan(userFocus(2)) && norm(linDelay,1)>0
Error in freqfocus (line 73)
Focus = LocalAdjustFocus(Focus,UserFocus,Grade,w,mag,linDelay,Ts,nLF,nHF);
Error in ltipack.ltidata/freqresp (line 74)
FocusInfo = freqfocus(Focus,Grade,w,mag.*exp(1i*ph),z,p,Ts,linDelay,[]);
Error in resppack.ltisource/magphaseresp (line 33)
[mag,phase,w,FocusInfo] = freqresp(SysData(ct),grade,wspec,true);
Error in wavepack.waveform/draw (line 25)
feval(this.DataFcn{:});
Error in wrfc.plot/draw (line 17)
draw(wf)
Error in wrfc.plot/init_listeners>LocalRefreshPlot (line 79)
draw(this)
Could you help me to solve this problem?
Best regards
Ming

채택된 답변

Star Strider
Star Strider 2019년 8월 12일
Re-name your ‘norm’ function to something that does not conflict with the name of any MATLAB function.
  댓글 수: 2
Ming Jia
Ming Jia 2019년 8월 12일
Cheers! It is solved :)
Star Strider
Star Strider 2019년 8월 12일
Great!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by