How to integrate varying-size signals in simulink?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dhruvit
el 30 de Jul. de 2023
Respondida: Sam Chak
el 1 de Ag. de 2023
I have a varying-size signal whose dimension changes based on input and integrator block does not accept variable-size signal. So, in that case which block shall I use or how to perform integration of varying-size signal?
4 comentarios
Sam Chak
el 30 de Jul. de 2023
Hi @Dhruvit
If it is okay with you, could you please provide the system states and the ODEs for the nth-node flexible tether, so that the dynamics can be tested in MATLAB? If everything works well, then you can consider migrating the MATLAB code of the ODE part to Simulink (MATLAB Function block).
for i = 1:n
acceleration of i th node = -Damping (ith element)*velocity(ith node) - tension (ith node) / mass matrix of ith node
end
Respuesta aceptada
Sam Chak
el 1 de Ag. de 2023
Hi @Dhruvit
The error seems to indicate that there is a problem with the dimensions of your acceleration term (3xn matrix) when using the second-order integrator block. Try ensuring that the size of the acceleration term (3xn matrix) is consistent and defined properly. In Simulink, the inputs to blocks need to have fixed dimensions. Check if there is any inconsistency in the size of the matrix, and make sure that the number of columns (n) is defined and constant.
0 comentarios
Más respuestas (0)
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!