Can the difference between impulse(sys) and plot(sys) be graphed?

조회 수: 2 (최근 30일)
HAMZA Butt
HAMZA Butt 2016년 3월 30일
댓글: HAMZA Butt 2016년 3월 30일
I need to compare the theoretical impulse response and the simulated impulse response. I created a time vector and plotted my theoretical answers. I want to compare the plotted against the simulated and find the error between them.

답변 (1개)

MHN
MHN 2016년 3월 30일
편집: MHN 2016년 3월 30일
Just feed a subtracter block with them (and abs block if you need the absolute value) and plot the difference. Just note that the simulation and theoretical one must be generated by a same time vector, otherwise comparing the differences are meaningless.
  댓글 수: 1
HAMZA Butt
HAMZA Butt 2016년 3월 30일
Are u referring to the following command:
Y = step(H,A,V) returns Y. The value of Y results from subtracting the elements of input vector V from the input array A along the specified dimension when the VectorSource property is Input port. The length of the input V must equal the length of the specified dimension of A.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by