[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Parcellfun gives error while getting the results
From: |
Prasad K |
Subject: |
Re: Parcellfun gives error while getting the results |
Date: |
Mon, 28 May 2018 00:12:13 -0700 (MST) |
Thanks Olaf
Sorry for triggering a wrong error, An updated example for triggering the
same error as i reported earlier
my function:
/"function z = testfun(x,y)
Repeat = round(rand(1)*10);
for i = 1:Repeat
z(i,:) = x + y;
end
end
my main code:
pkg load parallel
clc;clear all;close all;
Nproc = 8;
input1 = repmat(1:500,10,1);
input2 = 5;
inputcell1 = num2cell(input1,2);
inputcell2 = num2cell(input2,2);
output = parcellfun(Nproc, @testfun,
(inputcell1),(inputcell2),"uniformoutput",true);"/
When uniformoutput is false the program shows no error and executes as
expected.
But when uniformoutput is true it gives following error
"parcellfun: 10/10 jobs done
error: cat: dimension mismatch
error: called from
cell2mat at line 80 column 11
parcellfun at line 448 column 23
main at line 19 column 8
"
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html