2020-05-07 17:05:12 +00:00
|
|
|
elements = readdlm("elements.txt")
|
|
|
|
|
|
|
|
#elements = readdlm("elements.txt",'\t')
|
|
|
|
|
2020-05-11 04:34:44 +00:00
|
|
|
println(typeof(elements))
|
|
|
|
|
2020-05-07 17:05:12 +00:00
|
|
|
println(elements[1, 1])
|
|
|
|
#println(elements[1])
|
|
|
|
|
|
|
|
println(typeof(elements[1,3]))
|
|
|
|
println(typeof(elements[1,1]))
|
|
|
|
|
|
|
|
println(collect(1:9))
|
|
|
|
|
|
|
|
m = reshape(collect(1:9),(3,3))
|
2020-05-11 04:34:44 +00:00
|
|
|
m1 = reshape(1:9,(3,3))
|
|
|
|
|
|
|
|
println(m)
|
|
|
|
println(m1)
|
2020-05-07 17:05:12 +00:00
|
|
|
|
|
|
|
writedlm("numbers.txt",m,'\t')
|
|
|
|
m2 = readdlm("numbers.txt",Int8)
|
|
|
|
|
|
|
|
elements = readcsv("elements.csv")
|
|
|
|
|
|
|
|
elements, header = readcsv("elements.csv"; header=true)
|
2020-05-11 04:34:44 +00:00
|
|
|
|
|
|
|
println(elements)
|
|
|
|
|
|
|
|
println(header)
|
|
|
|
|
|
|
|
println(elements)
|