• Home
    • Copter
    • Plane
    • Rover
    • Blimp
    • Sub
    • AntennaTracker
    • Mission Planner
    • APM Planner 2
    • MAVProxy
    • Companion Computers
    • Developer
  • Downloads
    • Mission Planner
    • APM Planner 2
    • Advanced User Tools
    • Developer Tools
    • Firmware
  • Community
    • Support Forums
    • Facebook
    • Developer Chat (Discord)
    • Developer Voice (Discord)
    • Contact us
    • Getting involved
    • Commercial Support
    • Development Team
    • UAS Training Centers
  • Stores
  • About
    • History
    • License
    • Trademark
    • Acknowledgments
    • Wiki Editing Guide
    • Partners Program
Dev Logo
  • License (GPLv3)
  • Downloading the code / Using Git
  • Building the code
  • Editors & IDEs
  • Learning the code
  • Simulation & Testing
    • SITL Simulator
    • Mission Planner Simulation
    • Gazebo
    • XPlane-10
    • XPlane-10 Soaring
    • RealFlight
    • Morse
    • Replay
    • JSBSim
    • AirSim
    • Silent Wings Soaring
    • Last Letter
    • CRRCSim
    • HITL Simulators
    • Autotest Framework
    • Unit Tests
    • SCRIMMAGE
    • Webots
    • MATLAB and Simulink
      • MATLAB Simulation
      • Simulink Simulation
      • Plotting in real time
      • MATLAB serial driver testing
    • JSON interface
  • Debugging
  • Contributing Code
  • Porting to a new Flight Controller
  • Linux Support
  • Academic Works Involving ArduPilot
  • Advanced Hardware Info
  • AP_Peripheral Devices
  • CAN and DroneCAN/UAVCAN
  • Companion Computers
  • Developers Conference
  • Events
  • GCS Developer Resources
  • GSoC
  • How The Team Works
  • Lua Scripts
  • MAVLink Interface
  • MAVProxy Developer GCS
  • OEM Customization
  • RemoteID
  • ROS1/ROS2
  • RTF Vehicle Developer Information
  • Security
  • Support Proxy
  • Training Centers
  • USB IDs
  • User Alerts
  • Wiki Editing Guide
  • Appendix


Individual Partners SWAG Shop
Dev
  • Simulation
  • MATLAB and Simulink
  • Edit on GitHub

MATLAB and SimulinkΒΆ

All Matlab and Simulink functions rely on the TCP/UDP/IP Toolbox 2.0.6. A modified version of the toolbox is provided in the ArduPilot repository. The toolbox is compiled into a MEX file allowing for fast connection speeds, also removing the need for a licence for the official TCP/UDP tools. Pre-built MEX files are provided for Windows and Linux however it may be necessary to compile locally. The basic MATLAB Simulation copter example will try to do this if no MEX file is found. This should be run before trying the other examples.

  • MATLAB Simulation
  • Simulink Simulation
  • Plotting in real time
  • MATLAB serial driver testing

Tip

For advice using MATLAB and Simulink with ArduPilot please join the simulation channel on Discord.

Previous Next

Questions, issues, and suggestions about this page can be raised on the forums. Issues and suggestions may be posted on the forums or the Github Issue Tracker.

Creative Commons License© Copyright 2024, ArduPilot Dev Team.