Coming from Matlab, I recently had the same question. Have a look at Dict.
For speed, you may want to define new types, but for a quick "struct"
equivalent, you can try Dict.
On Wednesday, November 18, 2015 at 6:37:44 AM UTC+8, Jason McConochie wrote:
>
> Thank you. Perfect with defining the type after as
> someArray1::Vector{Float64}
>
> On Tuesday, November 17, 2015 at 11:16:08 PM UTC+1, Benjamin Deonovic
> wrote:
>>
>> You can use types:
>>
>> type myResult
>> someArray1::Vector
>> someArray2::Vector
>> end
>>
>>
>>
>> On Tuesday, November 17, 2015 at 4:06:10 PM UTC-6, Jason McConochie wrote:
>>>
>>> In matlab I group arrays into structures such that I can deal with one
>>> variable as the output from the function
>>> e.g.
>>> function o=someFunction(in)
>>> o.someArray1=[0,0,0,0];
>>> o.someArray2=[1,1,1,1];
>>> end
>>>
>>> What is the Julia equivalent? Maintaining the efficiency of the
>>> contiguous columnar array access in Julia.
>>>
>>