osr: fix call to strmatch for octave. Closes #1291

time-shift
Houtan Bastani 2016-09-23 16:12:40 +02:00
parent 99d7b2b8b2
commit e09b4571d7
1 changed files with 2 additions and 1 deletions

View File

@ -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()