From e09b4571d73f35214bab6c71decfe23c6c281028 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 23 Sep 2016 16:12:40 +0200 Subject: [PATCH] osr: fix call to strmatch for octave. Closes #1291 --- matlab/osr.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/osr.m b/matlab/osr.m index 37a81793a..fcd5b507b 100644 --- a/matlab/osr.m +++ b/matlab/osr.m @@ -51,7 +51,8 @@ oo_=make_ex_(M_,options_,oo_); np = size(params,1); i_params = zeros(np,1); for i=1:np - i_params(i) = strmatch(deblank(params(i,:)),M_.param_names,'exact'); + str = deblank(params(i,:)); + i_params(i) = strmatch(str{:}, M_.param_names, 'exact'); end skipline()