To find out how to run Fortran or C code from matlab see the External Interfaces page which includes tutorials and examples.