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: Equivalent of pause in MEX files
Replies: 1   Last Post: Jan 14, 2012 8:09 PM

Advanced Search

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

Posts: 456
Registered: 12/6/04
Equivalent of pause in MEX files
Posted: Jan 12, 2012 1:36 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

For some project we load large data files using a C-API which we wrapped into a MEX file for reading into Matlab. This works well.

However, because the files are so big, loading takes a long time. Sometimes, when the thing starts loading, a user realizes he selected the wrong file or for whatever reason wants to interrupt the loading. Unfortunately, Matlab does not seem to respond to user-interupts (CTRL-C) when the MEX file is executing.

Is there some ueber-interupt that halts the MEX file?

Or is there perhaps an equivalent of pause (that will allow matlab to handle user-interrupts for a moment) that can be used in a MEX file?

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.