[logspace] macro fixed about the use of ^ instead of .^ 62/17762/2
Cedric Delamarre [Wed, 3 Feb 2016 14:25:47 +0000 (15:25 +0100)]
test_run elementary_functions logspace

Change-Id: I277df0b401a6919840767259ce62f663d22ba660

scilab/modules/elementary_functions/macros/logspace.sci

index 989e8d2..1f41594 100644 (file)
@@ -42,5 +42,5 @@ function y=logspace(d1, d2, n)
     if d2==%pi then
         d2 = log10(%pi);
     end
-    y=10^( d1*ones(1,n) + [(d2-d1)*(0:n-2)/(floor(n)-1),d2-d1]);
+    y=10 .^( d1*ones(1,n) + [(d2-d1)*(0:n-2)/(floor(n)-1),d2-d1]);
 endfunction