# Getting error in dynare 4.5.2

**URL:** <https://forum.dynare.org/t/getting-error-in-dynare-4-5-2/10896>\
**Category:** Estimation\
**Created:** [19 October 2017 17:26 UTC](https://forum.dynare.org/t/getting-error-in-dynare-4-5-2/10896 "2017-10-19T17:26:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aldo](https://forum.dynare.org/user_avatar/forum.dynare.org/aldo/32/5490_2.png) [@Aldo](https://forum.dynare.org/u/Aldo)\
**Post date:** [19 October 2017 17:26 UTC](https://forum.dynare.org/t/getting-error-in-dynare-4-5-2/10896/1 "2017-10-19T17:26:59Z")

</div>

I am getting this message when I run in dynare 4.5.2:

> Undefined function ‘isstring’ for input arguments of type ‘char’.
> 
> Error in isfile (line 52)  
> if ~isoctave() && isstring(b) && length(b)\>1 && isvector(b)
> 
> Error in CheckPath (line 46)  
> if isfile(DirectoryName)

I don’t get this message in dynare 4.5.1. I attach my mod [mymod.zip](https://forum.dynare.org/uploads/default/original/2X/2/2c53c14781437b19a73a4587c881ab068c8c8af0.zip) (194.3 KB)  
file.

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [19 October 2017 17:38 UTC](https://forum.dynare.org/t/getting-error-in-dynare-4-5-2/10896/2 "2017-10-19T17:38:52Z")

</div>

Thanks for reporting. I am sorry for the bug. it’s my fault, the string type has only been introduced recently in matlab and I forgot to add a test for the version. Temporary quick fix is to replace:

```matlab
if ~isoctave() && isstring(b) && length(b)>1 && isvector(b)

```

by

```matlab
if false

```

on line 52, or you can safely remove the block.

The fix, with a proper test on matlab’s version, will be published in 4.5.3.

Best,  
Stéphane.

---

<div class="post-metadata">

**Author:** ![Aldo](https://forum.dynare.org/user_avatar/forum.dynare.org/aldo/32/5490_2.png) [@Aldo](https://forum.dynare.org/u/Aldo)\
**Post date:** [19 October 2017 18:12 UTC](https://forum.dynare.org/t/getting-error-in-dynare-4-5-2/10896/3 "2017-10-19T18:12:30Z")

</div>

Thanks a lot dear Stepan.

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [19 October 2017 18:31 UTC](https://forum.dynare.org/t/getting-error-in-dynare-4-5-2/10896/4 "2017-10-19T18:31:32Z")

</div>

The patched proposed by @jpfeifer two days ago has been merged in 4.5 branch. Unfortunately I missed the patch before the release… It will be in the next one (November). You can replace the `isfile.m` by this [version](https://raw.githubusercontent.com/DynareTeam/dynare/4.5/matlab/missing/isfile/isfile.m) (in the `matlab/missing/isfile` folder).

Best,  
Stéphane.

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [19 October 2017 21:41 UTC](https://forum.dynare.org/t/getting-error-in-dynare-4-5-2/10896/5 "2017-10-19T21:41:41Z")

</div>

Dear Aldo, Finally I managed to push a new release, with the patch for the issue you reported. See [Release of Dynare 4.5.3](https://forum.dynare.org/t/release-of-dynare-4-5-3/10897).

Best,  
Stéphane.

---

<div class="post-metadata">

**Author:** ![Aldo](https://forum.dynare.org/user_avatar/forum.dynare.org/aldo/32/5490_2.png) [@Aldo](https://forum.dynare.org/u/Aldo)\
**Post date:** [19 October 2017 22:23 UTC](https://forum.dynare.org/t/getting-error-in-dynare-4-5-2/10896/6 "2017-10-19T22:23:29Z")

</div>

Great dear Stepan.  
I am using version 4.5.3 now.

Thanks

Cheers
