Mimi Framework

MethodError: no method matching setindex!

Please explain why this code doesn’t work.

acco2RCP45s=(310.75, 311.10, 311.50)
acco2RCP45 = zero(1051)
for i = 1:3
acco2RCP45[i] = acco2RCP45s[i]
end
Gives message:
MethodError: no method matching setindex!(::Int64, ::Float64, ::Int64)

Never-mind! I see that “zero” should be “zeros”.