Community Profile

photo

Yulin


Last seen: 5 maanden ago Active since 2022

Statistics

Content Feed

View by

Question


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;...

meer dan een jaar ago | 1 answer | 0

1

answer

Question


为什么能正常运行的parfor代码封装成函数后无法运行?
以下包含 parfor 的代码可以正常运行: c = cell(1, 10); parfor ii = 1:10 c{ii} = 1; end 同样的代码包装成函数(仅仅添加一行function tempF...

meer dan een jaar ago | 0 answers | 0

0

answers