positive number produced from calculation

1 view (last 30 days)
hi,i have a calculation that requires the output to be positive value. example: (|0.33-0.42|)=0.9 i tried using abs, but the result is not 0.9. matlab does not recognize the | symbol.im guessing i used abs wrong. can someone please show me how to do this?
badrul hisham
badrul hisham on 10 Apr 2016
i've tried your coding and it works. it was just my mistake. i called a different input and used it in the the operation. thank you for your help

Sign in to comment.

Accepted Answer

Kuifeng on 9 Apr 2016

More Answers (0)


Community Treasure Hunt

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

Start Hunting!

Translated by