Plot a sine wave with the following... how to plot it?
Afficher commentaires plus anciens
Create a time vector, sine wave, 5 periods, 1 kHz, amplitude 2 volts in 5 x 1024 samples (time axis) as well as 5 periods in 4096 samples
Réponse acceptée
Plus de réponses (1)
SWETA K
le 19 Fév 2021
0 votes
x=0:3.14/100:2*3.14;
y=sin(x);
plot(x,y);
title('A Plot of Sine Curve');xlabel ('x-axis');
ylabel ('y-axis');
Catégories
En savoir plus sur Mathematics 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!