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: Any way to tell if inside a parfor loop?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 303
Registered: 12/10/05
Any way to tell if inside a parfor loop?
Posted: Dec 5, 2012 6:45 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Is there any way to tell if you are inside a parfor loop? I have a function that displays progress (using imagesc) but I'd like disable this if it was called from inside a parfor loop, since the display is not shown but the imagesc command still uses up processing time.

E.g. ideally something like this: if ~inside_parfor(); imagesc(abc); end

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.