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.

2 ビュー (過去 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

回答 (3 件)

Matt J
Matt J 2020 年 7 月 1 日
Make the right hand side and the left hand side the same size.

Gurpreet Singh
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.

VBBV
VBBV 2022 年 2 月 27 日
編集済み: VBBV 2022 年 2 月 27 日
XTrain{idx} = extract(afe,xPadded);% cell array
Use curly brackets just like XTrainC

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by