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.
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (3개)
Gurpreet Singh
2020년 7월 1일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!