0

I'm using the excellent Julia Mat File reader to read a mat file with the structure similar to test2

Dict1 = Dict("a" => [1,3], "b" => 2, "c" => "Hello")
test2=Dict("test"=>Dict1,"a"=>[2,4])

With the read command I can access Dict1 like this:

using MAT
read(file, "test")

But I'd also like to access variables within Dict1, like "a" or "b".

Any suggestions?

Thanks!

dubc
  • 41
  • 5

1 Answers1

0
dict_1 = Dict("a" => [1,3], "b" => 2, "c" => "Hello")

dict_2 = Dict("test" => dict_1, "a" => [2,4])

@show dict_2["test"]["b"]
dvjh
  • 1
  • Thanks for the suggestion. While that does works for dictionaries, for some reason it doesn't work for the MAT read function; I think the main issue is the read function only takes one string variable. – dubc May 16 '22 at 09:15