How to calculate |x|

1 view (last 30 days)
Lakshit Chugh
Lakshit Chugh on 16 Jun 2020
Answered: Bjorn Gustavsson on 16 Jun 2020
I am using find function but i need to use |x| instead of x how to write in matlab ?

Answers (1)

Bjorn Gustavsson
Bjorn Gustavsson on 16 Jun 2020
abs(x)
When you look for functions you should learn about the matlab-command lookfor, have a look at the help and documentation of that function.
HTH

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!