Replication factors must be a row vector of integers or integer scalars.
조회 수: 53(최근 30일)
Walter Roberson 2017년 3월 3일
If nFilters was not an integer divisible by 16, then nFilters/16 would not be a positive integer. The number of repetitions you specify must be positive integers. For example,
meanX = repmat(double(meanX), [ceil(nFilters/16), 1]);
would be more likely to be a positive integer (but would still fail if nFilters was 0 or negative.)
David J. Mack 2017년 3월 3일
nFilters/16 is probably not an integer. Depending on your needs, try round(nFilters/16) instead or use a number of filters which is an integer multiple of 16.