Borrar filtros
Borrar filtros

Is interpolation faster in Simulink or Matlab?

5 visualizaciones (últimos 30 días)
Marcus Jansson
Marcus Jansson el 2 de Mayo de 2017
Respondida: Jan el 20 de Jun. de 2017
I have a Simulink program that is compiled. The Simulink program contains a Matlab function where the physics are modelled. For each timestep an interpolation will take place, a length is interpolated to an angle. I have the opportunity to choose whether to implement the interpolation in Simulink or within the Matlab function. What is the best?
I know 'interp1' is slow and that there are faster functions like 'interp1q' or 'interp1qr' in Matlab but that have greater demands for the input.
  5 comentarios
Marcus Jansson
Marcus Jansson el 19 de Jun. de 2017
Linear. I can use interp1q, but I wonder if Simulink is even faster with its interpolation features?

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 20 de Jun. de 2017
You can use the compiled Mex version FEX: ScaleTime.

Más respuestas (0)

Categorías

Más información sobre Simulink 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