function mat2wav( matfile, wavfile )
  % MAT-File laden
  d = load( matfile );
   
  t = d.t;
  y = d.y;
   
      
  % Samplerate berechnen 
  len  = length( t );
  tmax = t(len);
  SR = len/tmax;
   
  % wavwrite( y, SR, wavfile );
  audiowrite( wavfile, y, SR );