I'm getting problem while using interp1() function. It is not supporting code generation.Any alternative for this?
MATLAB support package for arduino hardware
2 visualizzazioni (ultimi 30 giorni)
Più risposte (1)
Sebastian Castro il 28 Gen 2018
It is not directly possible... but if you have a pre-existing MATLAB function or you're more comfortable with text-based programming, you can call MATLAB code in Simulink using a "MATLAB Function block.
So long as you use the subset of MATLAB language/functions supported for C code generation, you should be fine.