hey all!Matlab tips here...

Discussion in 'C' started by rattlepanos, Feb 15, 2007.

  1. rattlepanos

    rattlepanos New Member

    Joined:
    Feb 15, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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.

    Thx
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice