For live scripts, using the LaTex equations, how to represent the absolute value?

I am using live editor to write a document, in which I need to represent the absolute value of a function.

 Accepted Answer

Apparently it is not easy to do "properly"; see https://tex.stackexchange.com/questions/43008/absolute-value-symbols
What might be good enough for your purposes is \left|EXPRESSION\right| such as
which is $ \left|sin(x)\right| $ without the space around the $

More Answers (0)

Products

Release

R2017b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!