How to calculate |x|

2 views (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

Community Treasure Hunt

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

Start Hunting!