# Plotting model / variable-vectors

**URL:** <https://forum.dynare.org/t/plotting-model-variable-vectors/15869>\
**Category:** Steady state\
**Created:** [21 May 2020 11:41 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869 "2020-05-21T11:41:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hko](https://forum.dynare.org/letter_avatar_proxy/v4/letter/h/57b2e6/32.png) [@hko](https://forum.dynare.org/u/hko)\
**Post date:** [21 May 2020 11:41 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/1 "2020-05-21T11:41:26Z")

</div>

Hi users,  
Which code should I use to plot the model as some of variables are now vectors?  
Thank you!!!  
[models1.mod](https://forum.dynare.org/uploads/short-url/bY121niKRKhyMofrSgO37ZK0z47.mod) (7.6 KB)  
[H\_loop.m](https://forum.dynare.org/uploads/short-url/fjs622SvSFrP2Rv0xcpZeMpQeCH.m) (3.6 KB) [models2.mod](https://forum.dynare.org/uploads/short-url/5EjZJ1K82KedUucf127YSPrr8aB.mod) (3.5 KB)

---

<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:** [21 May 2020 15:02 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/2 "2020-05-21T15:02:32Z")

</div>

Please elaborate on what exactly you are trying to do.

---

<div class="post-metadata">

**Author:** ![hko](https://forum.dynare.org/letter_avatar_proxy/v4/letter/h/57b2e6/32.png) [@hko](https://forum.dynare.org/u/hko)\
**Post date:** [21 May 2020 15:52 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/3 "2020-05-21T15:52:41Z")

</div>

Dear Professor,  
I want to plot a graph, and in the m. file I wrote the following code : subplot(331), plot(us), grid on, title(‘skilled unemployment’) but in this case the variable “us” takes only one value, i.e. the ‘steady state’. That’s why the code does not work. I use the m. file in order to loop over parameters end I want to illustrate the parameters effect through a graphic . Which code should I use?

Thank you.

---

<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:** [22 May 2020 12:45 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/4 "2020-05-22T12:45:12Z")

</div>

But you still did not tell us what exactly you are trying to plot. Are you trying to compute the steady state values for a set of parameter values?

---

<div class="post-metadata">

**Author:** ![hko](https://forum.dynare.org/letter_avatar_proxy/v4/letter/h/57b2e6/32.png) [@hko](https://forum.dynare.org/u/hko)\
**Post date:** [22 May 2020 13:07 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/5 "2020-05-22T13:07:49Z")

</div>

I want to plot the stedy state of variables.

---

<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:** [24 May 2020 11:59 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/6 "2020-05-24T11:59:12Z")

</div>

Please be more precise. A steady state for a variable is one single value. How do you arrive at a vector, i.e. what is the second dimension? The steady state for a particular variable if a parameter is varied?

---

<div class="post-metadata">

**Author:** ![hko](https://forum.dynare.org/letter_avatar_proxy/v4/letter/h/57b2e6/32.png) [@hko](https://forum.dynare.org/u/hko)\
**Post date:** [24 May 2020 12:10 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/7 "2020-05-24T12:10:52Z")

</div>

Thank you, I found the solution. 😊

---

<div class="post-metadata">

**Author:** ![Alex\_Noonan](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/ac8455/32.png) [@Alex\_Noonan](https://forum.dynare.org/u/Alex_Noonan)\
**Post date:** [18 October 2022 10:34 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/8 "2022-10-18T10:34:04Z")

</div>

Dear all,  
I was just wondering how this was resolved. i.e. How do you run multiple simulations with differing values for a given parameter, and then plot the results e.g. plot steady state consumption vs. discount factor beta

---

<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:** [18 October 2022 14:37 UTC](https://forum.dynare.org/t/plotting-model-variable-vectors/15869/9 "2022-10-18T14:37:20Z")

</div>

There are various posts on looping over parameters. The particulars depend on what you are trying to do.
