Signal_processing demos: do not redefine smooth 03/12703/2
Paul BIGNIER [Fri, 27 Sep 2013 10:39:52 +0000 (12:39 +0200)]
1-D convolution demo used smooth as variable name, but it is now a Scilab macro.

Change-Id: I996a63948b446e124e7cbb40de031f924dae53f1

scilab/modules/signal_processing/demos/conv.dem.sce

index 899778d..e6248bb 100644 (file)
@@ -21,8 +21,8 @@ function demo_conv()
     subplot(211)
     plot(t,y) //given signal
     //low pass 8 points wfir filter
-    smooth=[0.1197912,0.1242239,0.1272323,0.1287527,0.1287527,0.1272323,0.1242239,0.1197912];
-    ys=conv(y,smooth,"same");
+    Smooth=[0.1197912,0.1242239,0.1272323,0.1287527,0.1287527,0.1272323,0.1242239,0.1197912];
+    ys=conv(y,Smooth,"same");
     plot(t,ys,"r")// filtered signal
     legend([_("given noisy signal"),_("filtered signal")])
     title(_("Signal"))