- Define intial value x0 = -2*pi ;
- Define final value x1 = +2*pi ;
- Use linspace. Read about it. Create the required vector x.
- Use the functions sin(x) for sin and cos(x) for cos.
- Use plot to plot the required. Read about plot.
Sine and Cosine plot
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Can anyone help me on How to get sine and cosine plot of the variable,between -2pi to 2pi . .
0 commentaires
Réponse acceptée
KSSV
le 4 Fév 2021
It is your Home work which is really simple. And you should do it. Here are the hints.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!