Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

The following three lines could be used to create a plot of the Sine function: >> a = 3; >> b = 0: pi/a: 2*pi; >> plot(b,sin(b))

1 vue (au cours des 30 derniers jours)
OLAOYE abass
OLAOYE abass le 21 Nov 2013
Clôturé : MATLAB Answer Bot le 20 Août 2021
Kinda new to matlab, nd i want to know how can smoothen this sine function and how i can make its cosine fuction

Réponses (1)

Jos (10584)
Jos (10584) le 21 Nov 2013
If you split the commands, you might figure it out yourself
a = 3
b = 0:pi/a:2*pi
y = sin(b)
plot(b,y,'o-') % connect the dots
What happens if you give a a different value? (e.g. a = 10)
What happens if you change the function used in line 3?

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by