#141: Replace strmatch which is a deprecated function in Matlab ---------------------+------------------------------------------------------ Reporter: houtanb | Owner: Type: bug | Status: new Priority: trivial | Milestone: 4.3 Component: General | Version: Keywords: | ---------------------+------------------------------------------------------
Comment(by jpfeifer):
Unfortunately, strmatch ignored trailing whitespaces, while strcmp considers them. Apparently, the only way is to replace e.g.
strmatch(var_list_(i,:),M_.endo_names)
with
n=length(var_list_(i,:)); find(strncmp(var_list_(i,:),M_.endo_names,n))