MATLAB: Block type “MATLABFcn”: not yet supported by simulink coder

matlabfcn

I use interpreted matlab function in the simulink block.It works on pc when i try to run onTI 28379d launchpad pi it gives "Simulink coder error in block "model/Interpreted Matlab Function", block type "MATLABFcn": not yet supported by simulink coder". what is the problem here? how to solve this?

Best Answer

Run this in your MATLAB version to bring up the document.
web(fullfile(docroot, 'simulink/ug/comparison-of-custom-block-functionality.html'))
Use "MATLAB Function" block. Avoid using "Interpreted MATLAB Function" block as it is not supported for code generation.