【发布时间】:2016-01-03 21:01:58
【问题描述】:
我定义类型
type mytype
e1:: Real
e2:: Real
end
我想要一个 mytype 的向量:
Vmtype = Array{mytype}(10)
当我向朱莉娅要 10 个 e1 时。我收到一个错误 vmtype[1:2].e1 错误:类型数组没有字段 e1
如何访问 Vector Vmtype[1:10]?
【问题讨论】:
标签: vector types type-conversion julia any