{"action":"closed","issue":{"url":"https://api.github.com/repos/RobotLocomotion/drake/issues/1009","labels_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/1009/labels{/name}","comments_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/1009/comments","events_url":"https://api.github.com/repos/RobotLocomotion/drake/issues/1009/events","html_url":"https://github.com/RobotLocomotion/drake/issues/1009","id":69435932,"number":1009,"title":"matlabpool / parpool Dependency Check","user":{"login":"KeyDamo","id":7942338,"avatar_url":"https://avatars.githubusercontent.com/u/7942338?v=3","gravatar_id":"","url":"https://api.github.com/users/KeyDamo","html_url":"https://github.com/KeyDamo","followers_url":"https://api.github.com/users/KeyDamo/followers","following_url":"https://api.github.com/users/KeyDamo/following{/other_user}","gists_url":"https://api.github.com/users/KeyDamo/gists{/gist_id}","starred_url":"https://api.github.com/users/KeyDamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KeyDamo/subscriptions","organizations_url":"https://api.github.com/users/KeyDamo/orgs","repos_url":"https://api.github.com/users/KeyDamo/repos","events_url":"https://api.github.com/users/KeyDamo/events{/privacy}","received_events_url":"https://api.github.com/users/KeyDamo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-19T15:31:00Z","updated_at":"2015-04-21T15:27:17Z","closed_at":"2015-04-21T15:27:17Z","body":"This is line 494 of sampledFiniteTimeVerification.m:\r\n```if (matlabpool('size')==0) matlabpool; end```\r\nThe problem is that, reportedly, ```matlabpool``` [was replaced](http://stackoverflow.com/questions/19131126/how-do-i-create-a-parallel-loop) by ```parpool``` in R2013b of the Parallel Computing Toolbox.  I stumbled into this because I am using the R2015a.  The quick fix would be:\r\n```matlab\r\ntry\r\n  if (matlabpool('size')==0) matlabpool; end\r\ncatch\r\n  if isempty(gcp('nocreate')) parpool; end\r\nend\r\n```\r\nHowever, I know that ```matlabpool``` is called in other parts of Drake.  Perhaps the solution you prefer is something like expanding and using the ```checkDependency()``` function to select the command to use according the the user's version, since this is more like the customary way of doing things I'm used to see in Drake.  Let me know and if the fix you have in mind is \"communicable\" I'll be happy to do it myself."}}