Why does code generator transform matrix to array?
Afficher commentaires plus anciens
Hi all,
I have a matrix (lets say of dimension 2x3), that is used in an interp1-function in my Simulink model. This interpolation interpolates only one dimension of the matrix, so the result is of dimension 3. Which is correct so far.
Generating c code (ert target) makes the matrix of dimension 2x3 an array of dimension 6. The result of the calculation in the code is still correct, by I need the matrix still to be a matrix (for calibration purpose).
Anyone an idea why the matrix is transformed to an array and how I can avoid this?
Thanks for your help.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Array and Matrix Mathematics dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!