# Reading archives JLD2

**URL:** <https://discourse.julialang.org/t/reading-archives-jld2/80717>\
**Category:** Performance\
**Created:** [May 8, 2022, 7:19pm UTC](https://discourse.julialang.org/t/reading-archives-jld2/80717 "2022-05-08T19:19:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Post date:** [May 8, 2022, 7:19pm UTC](https://discourse.julialang.org/t/reading-archives-jld2/80717/1 "2022-05-08T19:19:34Z")

</div>

Dear all,  
I have the matrix `Xa_heuristico_1_MP30.jld2` saved in a JLD2 format. When I run:  
`Xa1_heuristico_MP30 = FileIO.load("Xa_heuristico_1_MP30.jld2","RH")`  
appears the folowing:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/3/c3de4c9e806642a7c12e2e9e8d8b7a2e4ad918db.png)

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/1/c131dee86ff07794a841b3e4485153630070d17c.png)

How can I acess the element 1,2,3 of matrix `Xa1_heuristico_MP30`?  
Anyone can help me please?

---

<div class="post-metadata">

**Author:** ![zhaiyusci](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhaiyusci/32/13125_2.png) [@zhaiyusci](https://discourse.julialang.org/u/zhaiyusci)\
**Post date:** [May 9, 2022, 4:53pm UTC](https://discourse.julialang.org/t/reading-archives-jld2/80717/2 "2022-05-09T16:53:54Z")

</div>

It seems the JLD2 file is not loaded correctly.  
By using `FileIO.load("Xa_heuristico_1_MP30.jld2")`, you should get a dictionary, and you can find the key corresponding to the matrix you want.  
You pass “RH” as the second argument, which means you load the element in the JLD2 file linked to `:RH`, which is not a matrix.  
BTW, please do not use screenshot, but copy the message;-)
