From: Andy on
Hi all,
I'm a beginner with C programming but I have been given a few functions which are written in C and I would like to be able to call these functions from an .m file instead of running them from terminal (Mac) and then importing the data into MATLAB. Is this possible and what would the syntax be to do this?
Thanks ahead of time!
From: Jan Simon on
Dear Andy,

> I'm a beginner with C programming but I have been given a few functions which are written in C and I would like to be able to call these functions from an .m file instead of running them from terminal (Mac) and then importing the data into MATLAB. Is this possible and what would the syntax be to do this?

Besides the function UNIX, you can compile your C-functions with a Mex gateway, such that you cann call them directly from Matlab. For the input and output of variables this is much faster then calling an external program.
help unix
help mex
Good luck, Jan