create a table for the function and show the values with two decimal places

1 view (last 30 days)
Hello, I need help with this create a table (or display values) and plot the variation of the function f(x) (sinx)(cos^2x) for 0\<x\<2pi. use proper formatting codes (fprint) to show the values with two demical places (e.g., %5.2f)
I know that we need to use disp ([x y]) to create a table and fprint to make the values appear in a two decimal but I'm not sure how to put it together.
please help. Thanks!

Answers (0)

Categories

Find more on Tables 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!