MATLAB: Positive number produced from calculation

mathematicsMATLAB

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?

Best Answer

abs(0.33-0.42)