Thank you. But When I try to run a complicated case, I meet another problem,
z1 = Table[Take[ysol[[1]], {Nn + 1, 2 Nn}].u2n[L/2], {t, 5, 20, 5}]
{0.267999, 0.483416, 0.601376, 0.661358}
my function with unknowns is
invysol = ParametricNDSolveValue[Thread[Join[inveqD, invicD] == 0], {invq[t]}, {t, 0, tf}, {x1, x2,
x3, x4}]
But when I want to make z2, an error comes,
z2 = Table[Take[First[invysol], {Nn + 1, 2 Nn}].u2n[L/2], {t, 5, 20, 1}]
Take::normal: Nonatomic expression expected at position 1 in Take[1,{6,10}].
Take::normal: Nonatomic expression expected at position 1 in Take[1,{6,10}].
Take::normal: Nonatomic expression expected at position 1 in Take[1,{6,10}].
General::stop: Further output of Take::normal will be suppressed during this calculation.
It seems I can't use Take
in the ParametricNDSolveValue
function. Do you know how to solve it?