MATLAB Answers


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

Asked by Jack
on 7 Mar 2012

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!



No products are associated with this question.

0 Answers

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!