Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Matlab Crashes at the end of a Mex Function
Replies: 7   Last Post: Sep 5, 2013 6:22 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Hariprasad

Posts: 27
Registered: 5/27/13
Matlab Crashes at the end of a Mex Function
Posted: Sep 4, 2013 5:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'm writing a Mex Function to calculate Kmeans clustering. I tried running each part of the code as a separate Mex function with dummy inputs, they all worked fine and finally after debugging the whole code, when I run the main Mex Function, it runs till the end of the code but just before exiting the function, MATLAB crashes giving a
Segmentation violation error.
Please let me know where i can paste my code.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.