From d55d5954ce609f6c619da2cf8f1058c2c03512c8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Ithaque=29?=
 <stephane.adjemian@ens.fr>
Date: Thu, 1 Apr 2010 16:02:12 +0200
Subject: [PATCH] Removed call to bsxfun (not available in old versions of
 matlab. An m file alternative to bsxfun is avalaible in branch master).

---
 matlab/imcforecast.m | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/matlab/imcforecast.m b/matlab/imcforecast.m
index e71d297162..bc7c0a903b 100644
--- a/matlab/imcforecast.m
+++ b/matlab/imcforecast.m
@@ -180,7 +180,9 @@ else
     cL = size(constrained_paths,2);
 end
 
-constrained_paths = bsxfun(@minus,constrained_paths,trend(idx,1:cL));
+for t=1:cL
+    constrained_paths(:,t) = constrained_paths(:,t)-trend(idx,t);
+end
 
 randn('state',0);
 
-- 
GitLab