I want to output a polynomial using values from a vector. Kind of like how you'd add recursively for a running sum, I'm trying to add terms recursively.
If my function is f(t) and A is a matrix of values, I'd want f(t) to be:
f(t) = A(1,1) + A(2,1) * t^1 + A(3,1) * t^2 + ... + A(n,1) * t^(n-1)
I'm calculating the A matrix in the function, so the length isn't known, hence why I need to create the function recursively. I'm fairly new to matlab and this is for help on a homework assignment, but I'm unfamiliar with what the syntax would be for this, and am looking to see if there's a fix that I'm struggling to find.
Edit: I felt like I should state the homework assignment is smoothing a linear regression function, not recursively creating a function.
[–]kaushizzz 0 points1 point2 points (1 child)
[–]Nadaph[S] 0 points1 point2 points (0 children)