Creating a graph of |sin(x)|

3 views (last 30 days)
Zofia
Zofia on 23 Feb 2023
Commented: Rik on 23 Feb 2023
How to create a graph of function f(x)=|sin(x)| in Matlab?

Accepted Answer

Stephen23
Stephen23 on 23 Feb 2023
Moved: Rik on 23 Feb 2023
fun = @(x)abs(sin(x));
fplot(fun)
  1 Comment
Rik
Rik on 23 Feb 2023
@Stephen23 Is there a reason you posted this as a comment? If so, feel free to move it back.

Sign in to comment.

More Answers (0)

Categories

Find more on Graph and Network Algorithms in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!