changeset 10258:14e70818755a octave-forge

control-devel: style fix
author paramaniac
date Tue, 15 May 2012 14:40:12 +0000
parents 040590aa92be
children fde06f2c60b3
files extra/control-devel/inst/arx.m
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/extra/control-devel/inst/arx.m	Tue May 15 14:15:20 2012 +0000
+++ b/extra/control-devel/inst/arx.m	Tue May 15 14:40:12 2012 +0000
@@ -97,10 +97,8 @@
 function theta = __theta__ (phi, y, i, n)
                                                 
   ## Theta = Phi \ Y(n+1:end, :);                   # naive formula
-  
-  ex = numel (phi);                                 # number of experiments
-  
-  if (ex == 1)
+    
+  if (numel (phi) == 1)
     ## single-experiment dataset
     theta = __ls_svd__ (phi{1}, y{1}(n(i)+1:end, i));
   else