Square wave with different amplitude for different time in number of cycles
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Selam Dagne
le 16 Juin 2019
Commenté : Selam Dagne
le 18 Juin 2019
How can i generate square wave with amplitude of 200 for the time interval [0,DT] and amplitude of -300 for the time interval of [DT,T] for n cycles, if D=0.5 and T=1/f=0.02. and number of cyles=3.
Thank you in advance!!!
0 commentaires
Réponse acceptée
Walter Roberson
le 16 Juin 2019
250 * square(parametric_times, D) - 50
parametric_times would be such that the end of the parametric_time vector was 2*pi*number_of_cycles (or better one sample before that)
parametric_times should map n*T to n*2*pi, and thus should be parametric_times = n*2*pi/T where n ranges from 0 to 3.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Fourier Analysis and Filtering 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!