Mathematical rearrangements are very important to obtain monitorable functions. These kinds of rearrangements require hand calculations generally. But, Matlab® provides various kinds of useful tools to do them in the command window. You can do these kinds of mathematical rearrangements with the ‘horner()’ command.
YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!
Here, we show you how to rearrange mathematical expressions with the ‘horner()’ command in Matlab® with very basic examples below.
How To Use ‘horner()’ Command In MatLab®?
>> syms x y = x^4-6*x^3+12*x; horner(y) ans = x*(x^2*(x - 6) + 12) >>
As you see in the example above, we created a symbolic variable ‘x’ with the syms command. Then, we created an equation.
Consider a situation that we want to rearrange this inside ‘x’ joint brackets.
We just typed ‘y’ inside the Matlab® command window to obtain the joint brackets of ‘y’. Take a look at the answer above.
The use of the ‘horner()’ command in MatLab® is very simple as you see above. You can use the ‘horner()’ command instantly whenever you need it.
Do not forget to leave your comments and questions below about the use of the ‘horner()’ command in Matlab® below.
If you want further coding examples about the ‘horner()’ command in Matlab®, inform us in the comments.
This article is prepared for completely educative and informative purposes.
Your precious feedbacks are very important to us.