solve function can't solve an inequality
1 次查看(过去 30 天)
显示 更早的评论
Hello, i'm trying to solve an inequality with the solve command but it gives me an error that tells me it can't solve my equation. Any alternatives to solve or does someone know how to overcome the error? thanks in advance!![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/767761/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/767761/image.png)
采纳的回答
Mitchell Thurston
2021-10-15
I'm able to get a solution with defining k as a real symbolic variable
syms k real
ineqs = [0 < 320/9 - k/9, 0 < (9*k + (k/9 - 320/9)*(k - 41))/(k/9 - 320/9), 0 < k];
A = solve(ineqs, k, 'ReturnConditions', true);
Where A.conditions returns
x < 36*5^(1/2) + 140 & 140 - 36*5^(1/2) < x
1 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!