Matlab® provides very useful commands to manage mathematical expressions rapidly. Otherwise, you need to make hand calculations to manage or simplify the equations.
YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!
For simplifying operations, you can use the ‘simplify()’ command in Matlab® easily. Here we will show you how to use the ‘simplify()’ command in Matlab® with a basic example that is executed in the command window.
How To Use ‘simplify()’ Command In MatLab®?
>> syms a y = (2*a^3+4*a^2+10*a+20)/(a^2+5); simplify(y) ans = 2*a + 4 >>
As you see above, we created a symbolic variable with the syms command and we created our equation with this variable. Our equation is quite complex. Normally, we need to make simplifications and factorizations to obtain a more simple form of this equation.
So, if you type this equation inside the ‘simplify()’ command, you will be given the more simple form as you see the above example as an answer.
As you see in the example above, the ‘simplify()’ command in Matlab® can be very useful.
Do not forget to leave your comments and questions below about the use of the ‘simplify()’ command in Matlab® below.
If you want further coding examples about the simplify() 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.
Leave a Reply