I am trying to parallelize a camera calibration pipeline using parfeval. The function works great on my Mac Pro, but gives a "not enough input agruments" error after I push it to the linux production machine. The two setups are identical in terms of code, support files, and file structure. The Mac Pro is running R2019B and the linux machine has R2020B. Here is the error I get on the linux machine:
>> [logfile,numT,numF] = mastcamz_run_radcal_v4('all',1,1,1,1,0,0,0,0,1);
Starting parallel pool (parpool) using the 'local' profile ...
Connected to the parallel pool (number of workers: 16).
Not enough input arguments.
Error in mastcamz_run_radcal_v4 (line 261)
F(i) = parfeval(p,@pareval_mastcamz_run_radcal_v4,3,sols(i),run_rad,run_epo,run_iof,run_pix,deliver_flag,save_local,force_cal,force_shutter,save_scratch,base_dir,scratch_dir,deliver_dir);
The number of input arguments to pareval_mastcamz_run_radcal_v4 is correct and, as stated above, the overall function works great on the Mac.
I tried deleted the "local_cluster_job" directory, as suggested by previous posts, but that didn't help me at all...