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

3 visualizaciones (últimos 30 días)
HAMZA Butt
HAMZA Butt el 30 de Mzo. de 2016
Comentada: HAMZA Butt el 30 de Mzo. de 2016
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.

Respuestas (1)

MHN
MHN el 30 de Mzo. de 2016
Editada: MHN el 30 de Mzo. de 2016
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 comentario
HAMZA Butt
HAMZA Butt el 30 de Mzo. de 2016
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Graph and Network Algorithms en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by