Skip to content

Instantly share code, notes, and snippets.

@elcritch
Created June 30, 2015 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elcritch/825ef57e5ab219795499 to your computer and use it in GitHub Desktop.
Save elcritch/825ef57e5ab219795499 to your computer and use it in GitHub Desktop.
Simplify simple Matlab-based data file in Julia, turn dicts keys into symbols. Hopefully this is just a "temp hack".
simplify_mat(d::Dict{ASCIIString, Any}) = Dict{Symbol, Any}( [ symbol(string(k)) => simplify_mat(v) for (k,v) in d ] )
simplify_mat(arr::Array{Float64,2}) = arr[:] # slicing???
simplify_mat(o::Any) = o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment