Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Ads

Discussion Groups

Discussion Groups | Matlab DSP | Using the LMS algorithm to cancel noise.

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

structures - nefe...@mailbox.gr - Feb 5 14:27:00 2006



I have a structure and I save it in a .dat form. When I try to import it into 

the ANFIS (from the fuzzy logic toolbox) i get the error message:

<<Error using ==> load
Number of columns on line 2 of ASCII file C:\MATLAB7\work\trainingdata.dat
must be the same as previous lines.

Error in ==> anfisedit at 617
           trndata=load([fpath fname]);>>
	What should I do? I cannot import it..
	


(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Using the LMS algorithm to cancel noise. - corizu - Feb 9 9:27:00 2006

Hi all,

I\'m a newbie so bear with me. I\'m trying to carry out noise 
cancellation on speech using the LMS algorithm but i\'m having no luck 
at doing so. It was successful when a sine wave was my reference signal 
source but i\'m now using white noise as my reference signal. Can anyone 
suggest a suitable values for the filter order and convergence rate? I 
Someone said just using an FIR filter and the LMS would not be adequate 
to cancel white noise. 

I would also like to implement it in real-time. What are the 
constraints? 
Any sort of help will be greatly appreciated.
	


(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

CRC32 implementation in Matlab?? - Imran Ali - Feb 10 12:52:00 2006

Hello !!
   
  I have CRC32 algorithm in C code . Can anybody give hints for its implementation in Matlab??
any links or resources ..??
   
  *********************************************************************
  _CalculateCrc32(U8 *data, U32 nrVals)
  {
  U32 crc32;
  U32 m, k;
  U32 a, b;
  U8 byte;
  // Init the CRC value using a seed value
  crc32 = 0xFFFFFFFF;
  // Compute the CRC of all given data values
  for (m=0; m < nrVals; m++)
  {
  // Get the next byte (8-bit) of data to use
  byte = data[m];
  // Mask out (AND) the low 8-bit of the current crc32 value
  a = crc32 & 0x000000FF;
  // Multiply together using binary arithmetic (XOR).
  // This combines the new data with the result of previous
  // operations making all data affect the final result.
  b = byte ^ a;
  // Now use the combined 8-bits of new input data and reused
  // old result to compute a new CRC value. Each loop will
  // use the LSB of the input data.
  for (k = 8; k > 0; k--)
  {
  // Only multiply (XOR) with the polynomial if the LSB is set,
  // otherwise only shift right once to get a new LSB.
  if (b & 0x00000001)
  b = (b >> 1) ^ 0xEDB88320;
  else
  b >>= 1;
  }
  crc32 = (crc32 >> 8) ^ b;
  }
  return crc32;
  }
  ***********************************************
   
  Thank you in advance.
   
  Regards,
  Imran
	


(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )