The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

Posts: 28
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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.