How to use griddata in simulink's matlab function block?
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
manoj saladi
le 28 Avr 2019
Commenté : Walter Roberson
le 30 Avr 2019
Hi,
I want to use griddata in simulink's matlab function block. But when I do this I saw error statements in Simulink as shown below
- The function 'griddata' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.
Can anyone tell me what would be the problem
Thank you,
Manoj.
0 commentaires
Réponse acceptée
Walter Roberson
le 28 Avr 2019
You can turn all acceleration off so that it does not attempt to generate code.
You can turn acceleration to the next lowest level, and put the line
coder.extrinsic('griddata');
in your code near the top. Code will be generated and will be able to call into matlab.
For any higher level of acceleration you would need to rewrite the code to not call griddata.
4 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink 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!