3com
3com
1. Introduction
Amplitude Modulation (AM) is a technique used in communication
systems where the amplitude of a high-frequency carrier wave is
varied in accordance with the message signal. It is commonly used in
AM radio and broadcasting.
3. AM Examples
Cosine Modulation
m = cos(2*pi*fm*t) - 0.25; % Message signal
c = cos(2*pi*fc*t); % Carrier
u = m .* c; % Modulated signal
Pulse Modulation
m = rectpuls(t, pw); % Rectangular pulse with width pw
5. Key Takeaways
• Sidebands appear at fc ± fm.
• Accurate demodulation requires matching carrier frequency.
• High carrier frequency avoids overlap in spectrum.
3. Frequency Domain
• fft2(): 2D Fast Fourier Transform.
• fftshift(): Shift zero-frequency to center.
• dct2(): 2D Discrete Cosine Transform.
4. Image Enhancement
• imadjust(): Adjust intensity values.
• histeq(): Histogram equalization.
• imnoise(): Add noise to image.
• imfilter(): Apply filters.
• medfilt2(): Median filtering.
• fspecial('gaussian', size): Create Gaussian filter.
5. Edge Detection & Morphology
• edge(): Detect edges (e.g., 'canny').
• imsharpen(): Sharpen image.
• im2bw(): Threshold image.
• imerode(), imdilate(): Morphological operations.
• imopen(), imclose(): Combine erosion and dilation.
3. Discrete Signals
Sampling
• Sampled Signals: Use stem.
• Resampling: downsample, resample.
Discrete Sequences
• X = [2, 3, -1, -2, 7]
• stem(X)
6. Analog Filters
Types:
• Low Pass (LPF)
• High Pass (HPF)
• Band Pass (BPF)
• Band Stop (BSF)
Design:
• Butterworth: buttap
• Chebyshev: cheb1ap, cheb2ap
• Elliptic: ellip
Frequency Response:
• bode, freqs
Transformations:
• lp2lp, lp2hp, lp2bp, lp2bs
7. Digital Filters
Design Methods
• From analog: bilinear
• Direct: butter, cheby1, cheby2, ellip
Application
• Filter a signal: y = filter(bz, az, g)
Example
gt = 3 + 1.5*sin(n*T) - cos(2*n*T) + sin(8*n*T);
[az, bz] = butter(6, wn);
y = filter(az, bz, gt);
Cadence Virtuoso Shortcuts (Custom IC Design)