So I'm working on this school project where we have to calculate T from an equation using fsolve. But Matlab won't use my equation, because T isn't estimated yet.
So when i run the script:
JacobFormula = ((Q)/(4*pi*T))*(log((2.25*T*t)/((r^2)*S)))-s;
The output is:
Undefined function or variable 'T'.
Which results that i can't go futher to find T. (All the other values are known)
No products are associated with this question.
First, the way you have defined JacobFormula, it is a variable and not a function. Here is a simple example of defining a function:
>> F = @(T) 3*T;
Then you can see that
You will be able to use that function F as an argument to fsolve.
Play games and win prizes!Learn more