create a table for the function and show the values with two decimal places
Afficher commentaires plus anciens
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!
Réponses (0)
Catégories
En savoir plus sur Numeric Types dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!