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!

답변 (0개)

카테고리

도움말 센터File Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

질문:

2012년 3월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by