Hi all.
I ve been using Matlab for quite some time now and recently I ve decided to link
a script in C that can be called from the Matlab environment.The code works fine,
ouputs the right results but there is a thing about the memory management :it just takes too
long!Inside the C code there are 3 nested for loops that under normal coditions (i.e. in a pure C framework ) there would be no latency at all ( at least i think so..).

I ve done some searching on memory control in C ( i use mxCalloc() to dynamically allocate memory space) but the delay persists.I think that Matlab always includes some delay when
there are calls to external functions,i.e no Matlab's built in ones.

If anyone has successfuly managed to call a C script via Matlab plz reply coz my debugging has reached its limits..no apparent reason for this undesirable slowing down.