Effacer les filtres
Effacer les filtres

Is interpolation faster in Simulink or Matlab?

5 vues (au cours des 30 derniers jours)
Marcus Jansson
Marcus Jansson le 2 Mai 2017
Réponse apportée : Jan le 20 Juin 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 commentaires
Marcus Jansson
Marcus Jansson le 19 Juin 2017
Linear. I can use interp1q, but I wonder if Simulink is even faster with its interpolation features?

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 20 Juin 2017
You can use the compiled Mex version FEX: ScaleTime.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by