From what I understand, you have installed new version of MinGW gcc compiler specifically 6.3 and you want MATLAB to use this version as opposed to the previous version.
I presume that you have correctly downloaded and installed the MinGW gcc Version 6.3 and your operating system is Windows.
To change the default compiler setting in MATLAB you can follow the following steps:
- Open MATLAB
- In the Command Window, run the following command: “mex -setup C++”
- MATLAB will search for installed compilers. If it detects the new MinGW installation, it will list it as an option. Choose the version 6.3 option.
- This will change the default compiler used by MATLAB.
As an additional caution, ensure that the path to the new MinGW installation is included in your system's PATH environment variable. This step may not be necessary if MATLAB is correctly configured, but it can help prevent issues with other software.
I hope this will help!