# Using dseries without running dynare

**URL:** https://forum.dynare.org/t/using-dseries-without-running-dynare/18187
**Category:** Documentation
**Created:** [28 May 2021 11:59 UTC](https://forum.dynare.org/t/using-dseries-without-running-dynare/18187 "2021-05-28T11:59:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![andre](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@andre](https://forum.dynare.org/u/andre)
#### Post date: [28 May 2021 11:59 UTC](https://forum.dynare.org/t/using-dseries-without-running-dynare/18187/1 "2021-05-28T11:59:19Z")

</div>

I need to load a matfile saved earlier from a previous execution of dynare. When I upload the matfile, the variables saved as `dseries` class are not uploaded correctly.

A solution is to run dynare only to add the path to the `dseries` class information. To avoid running dynare, I want to add the following lines to the code before loading the matfile:

`addpath('C:\dynare\4.6.3\matlab\modules\dseries\src')`  
`initialize_dseries_class`

Is this procedure fine or it is better to run dynare before uploading the matfile?

---

<div class="post-metadata">

### Author: ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)
#### Post date: [29 May 2021 17:58 UTC](https://forum.dynare.org/t/using-dseries-without-running-dynare/18187/2 "2021-05-29T17:58:35Z")

</div>

That procedure should be fine. Alternatively, you could call `dynare_config`, but it will add more stuff to your path.

---

<div class="post-metadata">

### Author: ![andre](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@andre](https://forum.dynare.org/u/andre)
#### Post date: [31 May 2021 10:47 UTC](https://forum.dynare.org/t/using-dseries-without-running-dynare/18187/3 "2021-05-31T10:47:12Z")

</div>

Great. Thank you. Good to know about `dynare_config`, too.
