Hello i am trying to draw a function with Gadfly using Julia. I have no problem with function like this:
function F(x)
return x+5
end
I use plot(F,1,10)
and it works.
Unfortunately for this function which is returning elements of an array it doesn't work:
function F(x)
return myArray[x]
end
I would be grateful for telling me where it goes wrong.