MATLAB SIGNAL PROCESSING TOOLBOX 6 Bedienungsanleitung Seite 15

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 60
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 14
Common Periodic Waveforms
2-7
Common Periodic Waveforms
The toolbox provides functions for generating widely used periodic waveforms:
sawtooth generates a sawtooth wave with peaks at ±1 and a period of 2π. An
optional width parameter specifies a fractional multiple of 2π at which the signal's
maximum occurs.
square generates a square wave with a period of 2π. An optional parameter specifies
duty cycle, the percent of the period for which the signal is positive.
To generate 1.5 s of a 50 Hz sawtooth wave with a sample rate of 10 kHz and plot 0.2 s of
the generated waveform, use
fs = 10000;
t = 0:1/fs:1.5;
x = sawtooth(2*pi*50*t);
plot(t,x)
axis([0 0.2 -1 1])
Seitenansicht 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 59 60

Kommentare zu diesen Handbüchern

Keine Kommentare