Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8822181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:02:45+00:00 2026-06-14T06:02:45+00:00

On a recent post I was told that there are differences between the way

  • 0

On a recent post I was told that there are differences between the way parallel toolbox handles warnings and the way regular matlab deoes it. I felt that poster hand gone someway to answering my question so I marked it as answered. But I still have some additional questions (hope this doesn’t contitute double posting).

Error only triggers when I don't use parfor?

I just wondered if someone can explain to me what these differences are?
Also what is meant by parfor being sandboxed?

Is it still possible to use try catch type structures with the parallel tool box or using some other mechanism to chain the same thing?

To be clear when I run using parfor warning messages are still produced telling me the matix is illconditioned but it doesn’t seem to be being picked up as an error despite me adding the lines

warnState(1) = warning('error', 'MATLAB:singularMatrix'); 
warnState(2) = warning('error', 'MATLAB:illConditionedMatrix'); 

However, when I run using a regular for loop it is picked up as an error.

So the parallel tool box is producing the warnings correctly its just not translating them into errors via the code above so they can be used in a try catch structure.

Kind Regards

Hugh

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:02:46+00:00Added an answer on June 14, 2026 at 6:02 am

    I think the problem in your original code is that you changed the warnings to errors on the MATLAB client only. To make that change on the workers, you need to do

    spmd
        warnState(1) = warning('error', 'MATLAB:singularMatrix'); 
        warnState(2) = warning('error', 'MATLAB:illConditionedMatrix'); 
    end
    

    There’s also the pctRunOnAll function to run things everywhere.

    Also, I don’t know what the OP meant about matlabpool workers being ‘sandboxed’. The differences between your MATLAB client and the workers are:

    1. The workers always run in single threaded mode; and
    2. The workers run with no display (although they can produce off-screen graphics and save to file)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A recent post by John Gruber notes that the following legalese: 3.3.1 — Applications
Following on from a recent post. I am creating a search function that queries
This recent post, How to use Evolutions in Play Framework 2.0? , says that
After Jeph most recent post: http://www.codinghorror.com/blog/archives/001310.html , I thought to myself it would be
Here is what I am currently doing. PHP echo's out the recent post in
I am trying implement a most recent widget into my tumblr post. So far,
A recent problem* left me wondering whether there is a text editor out there
I wanted to show post from just recent post from a specific categories so
I wanted to re-arrange my recent post in wordpress so they go Ascending/Descending. Here
I'm using jQuery to automatically fetch the most recent post on a blog. jQuery.get()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.