Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matlab script error!!! #1

Open
zuowei1998 opened this issue May 3, 2022 · 1 comment
Open

matlab script error!!! #1

zuowei1998 opened this issue May 3, 2022 · 1 comment

Comments

@zuowei1998
Copy link

do u know how to fix it??? thanks
2022-05-04 02-55-16 的屏幕截图

@brytsknguyen
Copy link
Owner

Hi @zuowei1998 zouwei,

You can comment out line 19 to 29, and line 32, and uncomment line 31 as follows:

% myCluster   = parcluster('local');
% 
% fprintf('Number of tests: %d. Number of Workers: %d\n\n',...
%          length(tests), myCluster.NumWorkers);
% 
% workers_needed = min(6, length(tests));
%      
% if myCluster.NumWorkers < workers_needed
%     delete(gcp);
%     parpool(workers_needed);
% end

for n=1:tests_count
% parfor n=1:tests_count
    
    [P_ate, rot_rmse] = check_viral_cal_err_parall(n, tests(n));

    EXP_NAME(n) = {tests(n).name(8:end)};
    P_ATE(n)    = {P_ate};
    R_ATE(n)    = {rot_rmse};
    
%     pause;
end

The commands from line 19 to 29 are to generate local worker pool to analyze the experiments in parallel to save time. The error may have something to do with your matlab subscription. Commenting them out make the analysis runs in sequence, which takes more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants