 , so let's plot for two periods, i.e. time=0 to 0.01:
, so let's plot for two periods, i.e. time=0 to 0.01:Plotting Sinusoidal Wave Graph on MatLab
    9 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    cikalekli
 le 25 Mai 2021
  
    
    
    
    
    Commenté : William Rose
      
 le 25 Mai 2021
            I want to plot the graph of this sinusoidal equation on matlab but I could not accomplished right...
Here is my sinusoidal wave equation:
v(t) = 5cos(1256t - pi/4)
0 commentaires
Réponse acceptée
  William Rose
      
 le 25 Mai 2021
        Start by figuring out a good time range. Since you have cos(1256t-pi/4), the period is  , so let's plot for two periods, i.e. time=0 to 0.01:
, so let's plot for two periods, i.e. time=0 to 0.01:
 , so let's plot for two periods, i.e. time=0 to 0.01:
, so let's plot for two periods, i.e. time=0 to 0.01:t=0:.0005:0.01;         %create vector of time values, with step size=0.0005
x=5*cos(1256*t-pi/4);   %compute x(t)
plot(t,x,'r.-')         %plot
Try it.
5 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!



