On matlab, I was trying to run
mex file.c
but I got a warning and error message. Anyway, I think the problem is what the warning says:
Warning: You are using gcc version '9.3.0'. The version of gcc is not supported. The version currently supported with MEX is '4.9.x'. For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release
.
Then, I tried to install gcc-4.9:
sudo apt-get install gcc-4.9
but there is no package candidate.