interp2 in Embedded MATLAB Function
Mostra commenti meno recenti
I am using embedded MATLAB function within Stateflow chart. I have difficulty in using the function 'interp2' within the embedded MATLAB function. Apparently, 'interp2' is not supported. Is there any workaround method for this?
Risposte (2)
Doug Eastman
il 28 Gen 2011
You can still use functions that are not part of the Embedded MATLAB subset by declaring them as extrinsic. Rather than being converted to C-code this function will simply call out to MATLAB to run the function. Try adding this line to your Embedded MATLAB Function before calling interp2:
eml.extrinsic('interp2');
1 Commento
Wen Tak Ho
il 19 Apr 2011
Arnaud Miege
il 19 Apr 2011
0 voti
Yes, the data type returned by the function is mxArray. See this similar question for suggestions on how to deal with it.
HTH,
Arnaud
Categorie
Scopri di più su MATLAB Coder in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!