Asked by huda nawaf
on 30 Nov 2012

hi,

my computer has two cores, so I tried to run this simple code. I faced two problems:

- I can not run script, I can run this code from command window. I don not know why?
- when run it , the two cores give me two results. It must each core give one result. Where each core sum one column. why each core give the sum of two columns?

pmode start x=magic(2); a=sum(x,distributed());

thanks in advance

*No products are associated with this question.*

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today
## 1 Comment

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/55279#comment_114569

Related question from same poster: http://www.mathworks.co.uk/matlabcentral/answers/53675-problem-in-running-when-use-pmode