Borrar filtros
Borrar filtros

Using (and interpolating) characteristic from Matlab in Simulink

4 visualizaciones (últimos 30 días)
Hi
I am currently creating model in Simulink for simulating dynamical behaviour of multibody system for my assignment.
For spring elements I would like to apply my own characteristic F(x) (where F is Force and x elongation) defined in m-file instead of proportional characteristic with k (or c) coefficient.
I was trying to use a User defined Matlab function block but I could not find out how to get characteristic from "compiled" M-file.
I do not know whether it would be the best solution, maybe I am missing something.
Whole idea is to get a force based on given elongation which is defined by my own characteristic with ability to interpolate between points, for example characteristic is defined for every 1cm but when x is given with greater precision it should linearly interpolate between points.
Waiting for any suggestions.
Thank You in advance
  1 comentario
Krzysztof BiaduD
Krzysztof BiaduD el 10 de Abr. de 2012
I would really appreciate any information regarding reading characteristic from Matlab to Simulink.
Thanks

Iniciar sesión para comentar.

Respuestas (1)

K E
K E el 10 de Abr. de 2012
If you want to interpolate between (x, F) points and F only depends on x, use a Lookup table and supply pre-calculated x and F vectors. Simulink will interpolate between the values.

Categorías

Más información sobre Assembly en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by