Defined domain integral(convoulution) in simulink
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I trying to use simulink to somve the following system:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/529039/image.png)
Where A is a NxN matrix, B is a Nx1 column vector and x(t) and u(s) are known functions.
I thought that handiling the domain of the integration can be done by using a transport delay block and substracting the delayed signal from the non delayed one. But I'm still puzzeld on how to compute the integral. I have treid to use the "Conv" which works for scalar A,B and x but does not work when these are matrices.
Does anyone have some suggestion on the matter?
Thank you in advance.
2 comentarios
Paul
el 2 de Mzo. de 2021
Should the x(t) on the right hand side be x(t-h)? Actually, I guess it doesn't matter beause x(t) is known function.
Is h constant?
Is there an intial condition on z(t), perhaps z(h)?
Respuestas (2)
Swetha Polemoni
el 1 de Mzo. de 2021
Hi
It is my understanding that you want to do convolution of two matrices. You may find this documentation "2-D Convolution" useful.
Paul
el 3 de Mzo. de 2021
Editada: Paul
el 3 de Mzo. de 2021
Assuming h is constant and h >= 0 ....
It seems like the model can be expressed as follows:
wdot(t) = A*w(t) + B*u(t)
z(t) = expm(A*h)*x(t) + w(t) - w(t-h) % w(t) - w(t-h) is the value or the integral
These equations can be implemented in Simulink assuming you have an initial condition w(0) and assuming that w(t-h) is known (probably should be w(0)) for t - h < 0.
0 comentarios
Ver también
Categorías
Más información sobre General Applications 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!