Prev: MATLAB postive integer error message?
Next: Probability
From: Amit Pathak on 7 May 2010 14:24 %%%%%%%%%%%%%%%%%%%%%%%%% % ENCODER % [x,Fs,bits] = wavread(file); xlen=length(x); t=0:1/Fs:(length(x)-1)/Fs; %decomposition using N equal frames step=frame_size; N=ceil(xlen/step); %computational variables Cchunks=0; Lchunks=0; Csize=0; PERF0mean=0; PERFL2mean=0; n_avg=0; n_max=0; n_0=0; n_vector=[]; for i=1:1:N if (i==N) frame=x([(step*(i-1)+1):length(x)]); else frame=x([(step*(i-1)+1):step*i]); end %wavelet decomposition of the frame [C,L] = wavedec(x,level,'db10'); %wavelet compression scheme if wavelet_compression=='on ' [thr,sorh,keepapp] = ddencmp('cmp','wv',frame); if heavy_compression == 'on ' thr=thr*10^6; end [xc,cxc,lxc,PERF0,PERFL2] = wdencmp('gbl',C,L,wavelet,level,thr,'h',… C=cxc; L=lxc; PERF0mean=PERF0mean + PERF0; PERFL2mean=PERFL2mean+PERFL2; end **************************************… This is one af the part of my code for Audio Compression using Wavelet Techniques But whenevr I execute the code the encountered error is ??? One or more output arguments not assigned during call to 'C:\MATLAB7\toolbox\wavelet\wavelet\wave… (waverec)'. Error in ==> wdencmp at 125 xc = waverec(cxc,lxc,w); Error in ==> Wavelet at 75 [xc,cxc,lxc,PERF0,PERFL2] = wdencmp('gbl',C,L,wavelet,level,thr,'h',… Please help as this is my Major project for final semester and it carries a great lot of important marks for me.....ofcourse its imp 4 my career!!!!.....Thanx a lotzzz to all of the people prior to the help to me....!!!
From: us on 7 May 2010 14:44 "Amit Pathak" > ??? One or more output arguments not assigned during call to 'C:\MATLAB7\toolbox\wavelet\wavelet\wave… (waverec)'. but where in WAVEREC does the error occur(?)... us
From: Amit Pathak on 8 May 2010 01:07 "us " <us(a)neurol.unizh.ch> wrote in message <hs1n1m$7sg$1(a)fred.mathworks.com>... > "Amit Pathak" > > ??? One or more output arguments not assigned during call to 'C:\MATLAB7\toolbox\wavelet\wavelet\wave… (waverec)'. > > but where in WAVEREC does the error occur(?)... > > i don't know exactly what happened with the code but m really confused and just need this..
From: Wayne King on 8 May 2010 07:24 "Amit Pathak" <pathak.amit06(a)gmail.com> wrote in message <hs2ri3$dfe$1(a)fred.mathworks.com>... > "us " <us(a)neurol.unizh.ch> wrote in message <hs1n1m$7sg$1(a)fred.mathworks.com>... > > "Amit Pathak" > > > ??? One or more output arguments not assigned during call to 'C:\MATLAB7\toolbox\wavelet\wavelet\wave… (waverec)'. > > > > but where in WAVEREC does the error occur(?)... > > > > i don't know exactly what happened with the code but m really confused and just need this.. Hi Amit, as US correctly points out to you, you have to give us enough information to help you. For example, the following call to wdencmp() is not complete [xc,cxc,lxc,PERF0,PERFL2] = wdencmp('gbl',C,L,wavelet,level,thr,'h',… You should give us information about the size of x (the frame you extracted from the audio as the input to wavedec() ) in the input call to: [C,L] = wavedec(x,level,'db10'); You should tell us whether wavelet_compression is 'on' or heavy_compression is 'on' I think then people will be able to help you. Wayne
From: Jan Simon on 8 May 2010 11:44
Dear Amit! > > but where in WAVEREC does the error occur(?)... > > > i don't know exactly what happened with the code but m really confused and just need this.. Without a precise information it is impossible to solve the problem. You can obtain this information: 1. by reading and/or posting the complete error message, which contains the line number, where the problem occurres. 2. by letting the debugger stop in the corresponding line: dbstop if error Then start your function again. Matlab stops when the error occurs and you can inspect the variables in the command window manually. Some of your output variables are not defined! So search for undefined outputs. A general advice: If programming is "imp" for you, you definitely have to learn to use the debugger! Good luck, Jan |