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

Advanced Search

Back to Topic List Back to Topic List  
spasmous

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]

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