MATLAB Answers

Unable to perform assignment because the size of the left side is 98-by-50 and the size of the right side is 98-by-32.

4 views (last 30 days)
Ardian Kurniawan
Ardian Kurniawan on 1 Jul 2020
Answered: Gurpreet Singh on 1 Jul 2020
parfor ii = 1:numPar
subds = partition(adsTrain,numPar,ii);
XTrain = zeros(numHops,numBands,1,numel(subds.Files));
for idx = 1:numel(subds.Files)
x = read(subds);
xPadded = [zeros(floor((segmentSamples-size(x,1))/2),1);x;zeros(ceil((segmentSamples-size(x,1))/2),1)];
XTrain(:,:,:,idx) = extract(afe,xPadded);
end
XTrainC{ii} = XTrain;
end

  0 Comments

Sign in to comment.

Answers (2)


Gurpreet Singh
Gurpreet Singh on 1 Jul 2020
Hi Ardian,
To perform any assignment dimension of the element on the left-hand side should be equal to the dimension of the element on the right-hand side.

  0 Comments

Sign in to comment.