Prev: String operation
Next: Tensor Product
From: Muhammad Tanauli on 5 Mar 2010 11:30 matlab displays a mismatch error in normal m file and in function file for the following code: a(n,:)=a(m,:) but when n and m are replaced by constant scalars like 3 and 4 no error is displayed.
From: Darren Rowland on 5 Mar 2010 20:21 You haven't actually asked a question here. Perhaps post a small section of code which generates the mismatch error for you, and someone will be able to help identify the cause.
From: ImageAnalyst on 5 Mar 2010 20:27 Probably because n and m aren't scalars like 3 and 4 are.
From: mohd syauqee on 13 Mar 2010 14:45 "Steven Lord" <slord(a)mathworks.com> wrote in message <fosdfd$nv$1(a)fred.mathworks.com>... > > "sherlock holmes" <exquandor(a)yahoo.com> wrote in message > news:for8i9$cni$1(a)fred.mathworks.com... > > Hai. I'm from Indonesia and need help in Matlab function > > code. Recently, I'm learned signal processing and focused in > > MFCC(Mel Frequency Cepstrum Coefficients). I'm used mfcc.m > > function file which I get it from internet, but there is > > problem when I compile it. The error message was "undefined > > function or variable M".Error refer to M2=diag(h)*M line. > > But if I compile the blockframes.m, it's work. Both file > > have 90% similar code. I have set the Matlab path correctly. > > It seems there is logic or syntax problem. But truly, I'm > > newbie in Matlab. So I dont know why and how? > > This code doesn't appear to have any syntax errors, but it looks like it > does have at least one logic error. I recommend you step through this code > in the MATLAB Editor/Debugger to locate the error -- it'll be a good > exercise that will help you familiarize yourself with MATLAB. This > documentation page contains a description of how to use the debugging tools > in the Editor. > > http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_env/bq4hw4g-1.html > > I will give you two hints: HELP FOR and HELP COLON. > > "The game is afoot!" > > *snip code* > > -- > Steve Lord > slord(a)mathworks.com > > i'm doing the same code above but i don't understand the error....... Error in ==> prob at 5 frames = blockFrames(s1, fs1, M, N);
|
Pages: 1 Prev: String operation Next: Tensor Product |