sara_87
- 748
- 0
Homework Statement
i'm trying to implement a code into MATLAB but I am getting an error that i think i understand but don't know how to fix it:
for i=1:n
f(x)=t(i)-*P(t(i),t0)*f(t0)
end
t0 is defined to be 0.
this is not the whole code, but the error lies in that line, it says:
? Attempted to access P(1,0); index must be a positive integer or logical.
Homework Equations
The Attempt at a Solution
I understand that the matrix P has an error because it's trying to evaluate at 0 when it should be a positive integer...? but this is the formula i want to evaluate.