Yulin
Followers: 0 Following: 0
Feeds
提问
parfor code can not run after wrapping into a function
I have a very simple code snippet with parfor that runs alright: c = cell(1, 10); parfor ii = 1:10 c{ii} = 1;...
2 years 前 | 1 个回答 | 0
1
个回答提问
为什么能正常运行的parfor代码封装成函数后无法运行?
以下包含 parfor 的代码可以正常运行: c = cell(1, 10); parfor ii = 1:10 c{ii} = 1; end 同样的代码包装成函数(仅仅添加一行function tempF...
2 years 前 | 0 个回答 | 0