Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Error using ==> mtimes Inner matrix dimensions must agree.

조회 수: 1 (최근 30일)
Anurag Pujari
Anurag Pujari 2013년 3월 31일
% Magnitude spectrum computation (as column vectors)
MAG = abs( fft(frames,nfft,1) );
% Triangular filterbank with uniformly spaced filters on mel scale
H = trifbank( M, K, R, fs, hz2mel, mel2hz ); % size of H is M x K
% Filterbank application to unique part of the magnitude spectrum
FBE = H * MAG(1:K,:); % FBE( FBE<1.0 ) = 1.0; % apply mel floor
% DCT matrix computation
DCT = dctm( N, M );
% Conversion of logFBEs to cepstral coefficients through DCT
CC = DCT *log( FBE );
It shows the error: Error using ==> mtimes Inner matrix dimensions must agree.
Error in ==> new at 47 CC = DCT *log( FBE );

답변 (1개)

Wayne King
Wayne King 2013년 3월 31일
What are the sizes of DCT and FBE? This error is simply telling you that your matrices are not conformable for multiplication like the following:
X = randn(2,3);
Y = randn(2,3);
X*Y
It may be a simple matter of just transposing one matrix, but that is impossible for us to say.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by