How I can solve the problem of compiling C code in Ubuntu 15 with Matlab R2015a?

1 view (last 30 days)
When I go to compile a .c file with the mex command in Ubuntu 15 and Matlab R2015a , I get in the command window the following message and I can not compile:
You are using gcc version '5.2.1'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'.
How could I solve this problem? I'm starting in Linux...
Thank you!

Answers (0)


Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!