Error occurred during compilation in the Simulink project 'Track Point Target in Dense Clutter Using GM-PHD Tracker'
Show older comments
Hello,
In the Simulink project 'TrackPointTargetsInDenseClutterSimulinkExample', I changed the 'Simulate using' parameter in the Probability Hypothesis Density Tracker bloock from 'Interpreted Execution' to 'code genetation' and then ran the simulation. However, the following error occured during compilation:
An error occurred in the block 'TrackPointTargetsInDenseClutterSimulinkExample/Probability Hypothesis Density Tracker' during compile.
Caused by:
Simulink detected an error
'For code generation, str2func does not support anonymous function character vectors.'.
The error occurred for MATLAB System block 'TrackPointTargetsInDenseClutterSimulinkExample/Probability Hypothesis Density Tracker'. See line 887, column 37 in file 'C:\Program Files\MATLAB\R2023a\toolbox\fusion\fusion\trackingSensorConfiguration.m'. The error was detected during code generation phase.
Start code generation report.
To prevent this error, use one of the following:
* Modify the System object to avoid code that does not support code generation.
* Change 'Simulate using' parameter to 'Interpreted Execution'.
I changed the 'Simulate using' parameter back to 'Interpreted Execution' , but I encountered the same problem when using embedder coder for code generation.
Accepted Answer
More Answers (0)
Categories
Find more on Tracking and Sensor Fusion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!