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

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!

Antworten (0)

Kategorien

Gefragt:

am 7 Mär. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by