- You are facing this error because the “uavScenario” function available under the “Scenario Simulation” category of the UAV toolbox does not have the extended capability of C/C++ code generation. You can find more about this in the following documentation: Scenario Simulation — Functions (mathworks.com)
- I would suggest you to check under the mask of the “UAV Scenario Configuration” block to ensure that the “Simulate Using” is configured as “Interpreted execution”. You can also check this by selecting the block and then executing the following line of code from the command window:
- If the setting has been somehow changed to “Code generation”, it could be the possible cause of the error you are encountering.
- In case the none of the above steps resolves the issue, I would request you to send the reproduction files for further inspection.