How to use MATLAB GPU coder
Environment Configuration
• Windows 10
• Visual Studio 2013/2015/2017/2019
• MATLAB (2017 or above) app: MATLAB coder, GPU coder, Parallel computing toolbox
• MATLAB Support for MinGW-w64 C/C++ Compiler
• Hardware: NVIDIA GPUs.
![](https://img-blog.csdnimg.cn/20200729181030818.png)
![](https://img-blog.csdnimg.cn/20200729181106861.png)
Opertation Process
(1) Select a function you want to compute in GPUs, e.g. “TrajectoryByPoints_40_TPP_GPU.m” . Then click Next.
Note: File writing is forbidden in a function file.