Can I have the user input a non linear equation?
2 次查看(过去 30 天)
显示 更早的评论
I have to take user's input( a non- linear equation, say f(x) ) and plot it against x and find the solutions using different numerical methods. I have tried inline , str2func, @(x) and nothing's working. For example, user should be able to give f(x) = exp(-x) - x = 0 or f(x) = 600x^4 -550x^3 +200x^2 -70 = 0 and the code should plot it and find its solutions ( the solutions' part is easier to handle but I am stuck at the plot thing)
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!