photo

Yulin


Last seen: ongeveer een jaar ago Active since 2022

Followers: 0   Following: 0

Statistics

Feeds

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

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer 2 jaar ago | 0 answers | 0

0

answers