Calculating a function variable for a specific output
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
John D'Errico
2021-5-23
You will need a guess for z. I'll call it z0.
zsolve = fzero(@(z) T(x,y,z) - Tend,z0);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!