Hello,

I’m trying to evaluate a polynomial matrix given by sol[5] in my code at certain values of x and y which I generated using LinRange. I tried to do it, but I’m getting the indices of sol[5] rather that the value of the matrix at any pair (x,y). Here is my code:

x = LinRange(0, 10, 20)

y = LinRange(0, 10, 20)

polynomial_matrix = sol[5]

for i in 1:length(x)

for j in 1:length(y)

xi = x[i]

yj = y[j]

polynomial=polynomial_matrix[xi,yj]

end

end