Which command can tell me my function degree ?
2 次查看(过去 30 天)
显示 更早的评论
Hi ; I have a problem with my function.
I want to learn its highest degree.
My function is like f(r,s) = a*r^2+b*r*s+c*s^3
for example this functions highest degree for s variabla is 3 and highest degree for r variable is 2.
How can I write a command which returns me the highest degree for r or s variable ?
Thank you
1 个评论
回答(1 个)
Walter Roberson
2013-2-27
If you have the function in symbolic form, then you can use coeffs() from the symbolic toolbox.
If you do not have the function in symbolic form, if all you have is a function handle that can be evaluated, then NO, it is not possible to determine the maximum degree.
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!