# Plotting IRFs from different models in the same figure

**URL:** <https://forum.dynare.org/t/plotting-irfs-from-different-models-in-the-same-figure/2139>\
**Category:** Stochastic simulations\
**Created:** [8 September 2011 01:06 UTC](https://forum.dynare.org/t/plotting-irfs-from-different-models-in-the-same-figure/2139 "2011-09-08T01:06:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [23 July 2021 08:27 UTC](https://forum.dynare.org/t/plotting-irfs-from-different-models-in-the-same-figure/2139/5 "2021-07-23T08:27:41Z")

</div>

> [@Q: combining IRFs into subplotted figures & iterating?](https://forum.dynare.org/t/q-combining-irfs-into-subplotted-figures-iterating/3609/66):
>
> Use clear,clc % Run and collect dynare outputs dynare tank\_cw; irf1 = oo\_.irfs; save tank\_cw\_results.mat irf1; dynare tankcw1; irf2 = oo\_.irfs; save tankcw1\_results.mat irf2; ending\_cell={'\_eps'}; for ii=1:length(ending\_cell) HOR=1:options\_.irf; var={'n', 'nW', 'w', 'c', 'cC', 'cW', 'rn', 'r', 'pi', 'b', 'bC', 'bW', 't', 'g', 'd', 'csl', 'chl', 'bsl', 'bhl', 'ls'}; % variables to be plotted as called in Dynare fig(ii)= figure('Name',['Shock to',sprintf(ending\_cell{1,ii})],'Numb…

is an example.

---

_[View the full topic](https://forum.dynare.org/t/plotting-irfs-from-different-models-in-the-same-figure/2139)._
