Question: how to use equation in matlab?
Answer: Go to the Insert tab and click Equation. A blank equation appears.
Build your equation by selecting symbols, structures, and matrices from the options displayed in the Equation tab. ... 
Format your equation using the options available in the Text section.