Effacer les filtres
Effacer les filtres

"out of bounds" error with floor/fix rounding in matlab function block in Simulink

1 vue (au cours des 30 derniers jours)
Rod
Rod le 28 Août 2013
Hello,
I wish to use a rounding function (floor or fix) in a matlab function block, in order to generate an array index from a floating point value.
However, I get an "out of bounds" error, pointing to the line with said rounding function.
How can I use one of these functions in a Matlab function block?
  1 commentaire
Kaustubha Govind
Kaustubha Govind le 28 Août 2013
Could you please paste a code snippet to show how you're calling the function?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Event Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by