MATLAB: An error occurred while running the UAV simple flight model example

uav quadcopter simulationUAV Toolbox

while try running the Uav simple flight model the following errors occours
Windows cannot find 'C/Program'.Make sure you typed the name correctly, and then try again.
and this below appear in the Matlab diagnostic viewer
Caused by:
  • 3D simulation engine interface setup error.
How do i fix this issues?
Any help will/would be appreciated.
Thanks.

Best Answer

This issue is potentially caused by spaces in the Windows "%temp%" directory path. Once your Windows "%temp%" directory path does not have a space, the simulation should be able to execute without error. Spaces in the Windows "%temp%" directory may be caused by spaces in the Windows username.
Here "C:\Program Files\" seems to contain a space character. Changing to a directory without the "space character" in the path might help resolve this issue.
DISCLAIMER: These are my own views and in no way depict those of MathWorks.