Clear Filters
Clear Filters

Define the variable t as t =6.8 then evaluate: ln( |t^ 2 - t^ 3|)

1 view (last 30 days)
How to write "||" in matlab?

Accepted Answer

Walter Roberson
Walter Roberson on 18 Sep 2022
abs -- and ln is log()
  3 Comments
Walter Roberson
Walter Roberson on 18 Sep 2022
In mathematics, the absolute value or modulus of a real number x,
denoted |x|, is the non-negative value of x without regard to its sign.
Example:
abs([-3, 3, -inf, inf, -0, 0])
ans = 1×6
3 3 Inf Inf 0 0

Sign in to comment.

More Answers (0)

Categories

Find more on Resizing and Reshaping Matrices 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!