title: One or more output arguments not assigned during call to mdwt - Wavelet Transform
body: <p>I'm trying to filter an image using Wavelet Tranform. I tried to use the function <code>mdwt</code> from here : <a href="http://www.mathworks.com/matlabcentral/fileexchange/6391-wavelets-based-denoising/content/mdwt.m" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/6391-wavelets-based-denoising/content/mdwt.m</a>, and the other functions from this link , like this :</p>
  
  <pre><code>img = imread('A10T_1.jpg');       
  h = daubcqf(4,'min');
  L = 1;
  y = mdwt(img,h,L);
  </code></pre>
  
  <p>The problem is that at the last line I get : <code>One or more output arguments not assigned during call to</code>, <code>Error in =&gt; y = mdwt(img,h,L);</code></p>
  
  <p>Where is the problem? The function <code>mdwt</code> contains only the declaration, nothing more, and I can see that's the problem. Can anyone help me to solve me this ? Or there is any other method to filter an image using Wavelet Transform without using these functions ?</p>
  
  <p>Thanks in advance.</p>
  
  <p>EDIT :</p>
  
  <p>Now I'm tring to show the image denoised usind wavelet Transform with this code :</p>
  
  <pre><code>RGB = imread('small.jpg');
   J = imnoise(RGB,'salt &amp; pepper',0.05);h = daubcqf(6);  
        noisyLena = J;
        figure; colormap(gray); imagesc(RGB); title('Original Image');
         figure; colormap(gray); imagesc(noisyLena); title('Noisy Image'); 
  %       Denoise lena with the default method based on the DWT
        [denoisedLena,xn,opt1] = denoise(noisyLena,h);
        figure; colormap(gray); imagesc(denoisedLena); title('denoised Image');  
  </code></pre>
  
  <p>but I get the error</p>
  
  <pre><code>??? The matrix row dimension must be of size m*2^(L)
  
  Error in ==&gt; denoise at 171
    [xd , LL]= mdwt(double(i),h,L);
  
  Error in ==&gt; wavelet_start at 20
        [denoisedLena,xn,opt1] = denoise(noisyLena,h);
  </code></pre>
  
  <p>where denoise function is this : <a href="http://www.mathworks.com/matlabcentral/fileexchange/6391-wavelets-based-denoising/content/denoise.m" rel="nofollow">http://www.mathworks.com/matlabcentral/fileexchange/6391-wavelets-based-denoising/content/denoise.m</a></p>
  
  <p>where is the problem ?</p>