diff scripts/signal/periodogram.m @ 11113:a8ac114ec9ab

Stylefixes, replace end by endif.
author Thorsten Meyer <thorsten.meyier@gmx.de>
date Mon, 18 Oct 2010 20:40:12 +0200
parents f42f6fc27cc0
children 1740012184f9
line wrap: on
line diff
--- a/scripts/signal/periodogram.m	Mon Oct 18 14:33:03 2010 -0400
+++ b/scripts/signal/periodogram.m	Mon Oct 18 20:40:12 2010 +0200
@@ -137,7 +137,7 @@
     rr = rem (length (x), nfft);
     if (rr)
       x = [x(:); (zeros (nfft-rr, 1))];
-    end
+    endif
     x = sum (reshape (x, nfft, []), 2);
   endif
 
@@ -182,7 +182,7 @@
       plot (f, 10*log10 (Pxx));
       xlabel ("frequency [Hz]");
       ylabel ("Power density [dB/Hz]");
-    end
+    endif
     grid on;
     title ("Periodogram Power Spectral Density Estimate");
   else