Calculating a function variable for a specific output
1 view (last 30 days)
Show older comments
I have a function which depends on 3 variables.
Lets say my function is this:
Tend=@T(x,y,z)
Assume that the variables x and y are known. How can I calculate the z value for a specific Tend value?
0 Comments
Answers (1)
John D'Errico
on 23 May 2021
You will need a guess for z. I'll call it z0.
zsolve = fzero(@(z) T(x,y,z) - Tend,z0);
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!