# MS-SVAR, problems

**URL:** <https://forum.dynare.org/t/ms-svar-problems/2061>\
**Category:** Dynare help (legacy posts)\
**Created:** [9 July 2011 16:21 UTC](https://forum.dynare.org/t/ms-svar-problems/2061 "2011-07-09T16:21:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![masopa87](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@masopa87](https://forum.dynare.org/u/masopa87)\
**Post date:** [9 July 2011 16:21 UTC](https://forum.dynare.org/t/ms-svar-problems/2061/1 "2011-07-09T16:21:22Z")

</div>

Hi,  
I’m trying to run the code for ms-sbvar with Dynare unstable, but as soon as I do it, I get this error message back:

??? Error using ==\> cell.strmatch at 21  
Requires character array or cell array of strings as inputs.

Error in ==\> read\_variables at 74  
iv = strmatch(var\_names\_01(:,dyn\_i\_01),raw(:,1),‘exact’);

Error in ==\> ms\_sbvar\_setup at 43  
options\_.data = read\_variables(options\_.datafile, …

Error in ==\> test1 at 72  
ms\_sbvar\_setup(options\_);

I think that this problem is related to the inputs I gave about the datafile, the names of the variables etc…but I’m not able to solve it on my own. Could you give me any suggestions?  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![HoutanBastani](https://forum.dynare.org/user_avatar/forum.dynare.org/houtanbastani/32/5052_2.png) [@HoutanBastani](https://forum.dynare.org/u/HoutanBastani)\
**Post date:** [11 July 2011 09:34 UTC](https://forum.dynare.org/t/ms-svar-problems/2061/2 "2011-07-11T09:34:38Z")

</div>

Please post a .mod file that reproduces the error.

Best,  
Houtan

---

<div class="post-metadata">

**Author:** ![masopa87](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@masopa87](https://forum.dynare.org/u/masopa87)\
**Post date:** [11 July 2011 12:21 UTC](https://forum.dynare.org/t/ms-svar-problems/2061/3 "2011-07-11T12:21:29Z")

</div>

Hi!  
Actually I’m using directly the matlab mfiles, as DH10.mod (the example) seems not to work (the system keeps on saying that the equations are not specified, even if there should not be a specification in a VAR)…  
I wrote another thread about the problem with the mod file ([DH10.mod](https://forum.dynare.org/t/dh10-mod/2064/1)).  
I’m literally going mad with this…

---

<div class="post-metadata">

**Author:** ![HoutanBastani](https://forum.dynare.org/user_avatar/forum.dynare.org/houtanbastani/32/5052_2.png) [@HoutanBastani](https://forum.dynare.org/u/HoutanBastani)\
**Post date:** [11 July 2011 15:40 UTC](https://forum.dynare.org/t/ms-svar-problems/2061/4 "2011-07-11T15:40:29Z")

</div>

Hello, I had no problems running DH10 with the associated datafile found on the wiki page. Are you using a recent dynare-unstable snapshot?

---

<div class="post-metadata">

**Author:** ![masopa87](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@masopa87](https://forum.dynare.org/u/masopa87)\
**Post date:** [14 July 2011 14:38 UTC](https://forum.dynare.org/t/ms-svar-problems/2061/5 "2011-07-14T14:38:21Z")

</div>

I don’t know how to use it…I’m a newbie…
