multiply a sawtooth wave form and sin wave together
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Andrew Bills
 il 12 Apr 2019
  
    
    
    
    
    Commentato: Andrew Bills
 il 13 Apr 2019
            Me and my friend are trying to multiply the sawtooth wave form and sin wave together. could someone help us with this command below is a photo of the multisim file we are try to recreate in matlab. 
x = sawtooth(2*pi*50*t);
x1 = sin(pi/4*t+pi/2);
z=x.*x1;

0 Commenti
Risposta accettata
  Mark Sherstan
      
 il 12 Apr 2019
        You just need to define a time array. This should work for you:
t = 0:pi/12:2*pi;
x = sawtooth(2*pi*50*t);
x1 = sin(pi/4*t+pi/2);
z=x.*x1;
plot(t,x,t,x1,t,z)
legend('sawtooth','sine wave','combined')
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Special Functions in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!