# Placing dates on the horizontal axis of historical shock decomposition shocks

**URL:** <https://forum.dynare.org/t/placing-dates-on-the-horizontal-axis-of-historical-shock-decomposition-shocks/13411>\
**Category:** Stochastic simulations\
**Created:** [16 March 2019 18:37 UTC](https://forum.dynare.org/t/placing-dates-on-the-horizontal-axis-of-historical-shock-decomposition-shocks/13411 "2019-03-16T18:37:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [30 March 2019 14:31 UTC](https://forum.dynare.org/t/placing-dates-on-the-horizontal-axis-of-historical-shock-decomposition-shocks/13411/6 "2019-03-30T14:31:32Z")

</div>

Hi,

Then it’s almost the same approach. It is possible to instantiate a `dseries` from a matlab array instead of a data file. The sole difference is that you have to provide the names of the series in a third argument to the `dseries` constructor (routine) as a cell of char arrays, you can also provide the \TeX names of the variables in a fourth argument. In the array, passed as the first argument, the data must be in column (each column is for a different variable). The data you need are stored in `oo_.shock_decomposition` which is a three dimensional array which you’ll have to manipulate (transposition, squeeze, …) to fit your needs. The organisation of this array is described in the [reference manual](https://www.dynare.org/manual/Shock-Decomposition.html#index-oo_005f_002eshock_005fdecomposition). The different approaches to instantiate `dseries` objects are also described in [section 6.2](https://www.dynare.org/manual/dseries-class.html#dseries-class) of the same manual.

Best,  
Stéphane.

---

_[View the full topic](https://forum.dynare.org/t/placing-dates-on-the-horizontal-axis-of-historical-shock-decomposition-shocks/13411)._
