# How to find solution from certain index in DifferentialEquations.jl

**URL:** <https://discourse.julialang.org/t/how-to-find-solution-from-certain-index-in-differentialequations-jl/107766>\
**Category:** Numerics\
**Tags:** modelingtoolkit, differentialequation\
**Created:** [December 18, 2023, 10:40am UTC](https://discourse.julialang.org/t/how-to-find-solution-from-certain-index-in-differentialequations-jl/107766 "2023-12-18T10:40:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aoifehealy](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Post date:** [December 18, 2023, 10:40am UTC](https://discourse.julialang.org/t/how-to-find-solution-from-certain-index-in-differentialequations-jl/107766/1 "2023-12-18T10:40:21Z")

</div>

Hi there,

I have a DiffrentialEquations.jl solution from a model I created using ModelingToolkit.jl where u has a number of different columns.

Is there a way of displaying the results of just the columns of a specified index? I know you can plot only specific indexes like this

```julia
plot(sol, idxs = [model.component.parameter])

```

but I would like to be able to just look at the actual numbers instead of a plot, and have the possibility to store the values from this one index in a separate variable.

I hope this explains my problem.

Thanks!

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [December 18, 2023, 1:22pm UTC](https://discourse.julialang.org/t/how-to-find-solution-from-certain-index-in-differentialequations-jl/107766/2 "2023-12-18T13:22:11Z")

</div>

`sol[model.component.parameter]`?

---

<div class="post-metadata">

**Author:** ![aoifehealy](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Post date:** [December 18, 2023, 1:37pm UTC](https://discourse.julialang.org/t/how-to-find-solution-from-certain-index-in-differentialequations-jl/107766/3 "2023-12-18T13:37:07Z")

</div>

Thank you!
