Assume that I define:
Computef[maxK_,Q_,R_]:= Module[{f},
...(some other equations)...
f[k] = Table[
Function[{x},
Evaluate[Subscript[fvar, k, i][x] /. sol[[1]]]], {i, 1, n}];
Return[Table[f[k], {k, 0, maxK}]];
so Computef is a rule that stores all these n-column functions f. Now I want to define a function of k,Q,R,x such that it gives me the k-th function that has been stored in Computef.
This can be easily done if I do not want x. So:
y[k_, Q_, R_] := Module[{fList}, fList = Computef[maxK, Q, R];
fList[[k + 1]]]
And then I can look, for example, at:
y[1,Q0,R0]
which are the four-components of the 1st function stored in Computef (I chose n=4).
Now assume I want to define this as function of x so that I can plot it etc. Something like:
u[k_,Q_,R_,x_]:= y[k,Q,R][x]
but I do not know how do this.



u[k_,Q_,R_,X_]:= y[k,Q,R]/.x->X$\endgroup$Comap:u[k_, Q_, R_, x_] := Comap[y[k, Q, R], x]. Caveat... I'm not 100% sure I understand what you're trying to do since you haven't provided executable code. $\endgroup$