Skip to main content

How to use MATLAB Simulink



Introduction to MATLAB Simulink

MATLAB Simulink is a popular add-on of MATLAB. Here, you can use different blocks like modulator, demodulator, AWGN channel, etc. And you can do experiments on your own.

Simulink Interface

Steps to Get Started

  1. 1. Go to the 'Simulink' tab at the top navbar of MATLAB. If not found, click on the add-on tab, search 'Simulink,' and then click on it to add.
  2. 2. Once you installed the simulation, click the 'new' tap at the top left corner.
  3. 3. Then, search the required blocks in the 'Simulink library.' Then, drag it to the editor space.
  4. 4. You can double-click on the blocks to see the input parameters.
  5. 5. Then, connect the blocks by dragging a line from one block's output terminal to another block's input.
  6. 6. If the connection is complete, click the 'run' tab in the middle of the top navbar.
  7. 7. After clicking on the run button, your Simulink is ready. Then double-click on any block to see the output.

Example: QPSK Simulation

The following block diagram is an example of the MATLAB simulation of 'QPSK' or quadrature phase shift keying.

QPSK Modulation and Demodulation
Fig: QPSK Modulation and Demodulation

In the above figure, for QPSK modulation and demodulation, we've used blocks like Random Integer Generator to generate the random integers 0, 1, 2, and 3, which are the inputs of the QPSK modulators. Then, the signal passes thru the AWGN channel.

At the receiver side, we demodulate the signal using a QPSK demodulator. A scope is connected to the output terminal of the demodulator. Scopes are used to visualize the output signal.

Want to try Simulation now?

Explore our advanced tools and interactive wireless communication simulators.

Launch Simulator →


Contact Us

Name

Email *

Message *

Popular Posts

CMOS Logic Gates: Inverter, NAND, and NOR

CMOS Logic Gates: Inverter, NAND, and NOR Complementary metal–oxide–semiconductor (CMOS) technology forms the backbone of modern digital IC design. Patented by Frank Wanlass in 1963 ( US patent 3,356,858 ), CMOS enables low-power, high-speed, and noise-immune logic circuits. CMOS gates, including inverters, NAND, and NOR, are widely used in both large-scale and small-scale integrated circuits due to their efficiency and versatility. CMOS Inverter A CMOS inverter consists of a complementary pair of PMOS and NMOS transistors. The PMOS transistor connects to the supply voltage V DD , while the NMOS connects to ground. The input voltage V IN controls both gates, and the output voltage V OUT is taken from the connected drains. CMOS inverters are highly energy-efficient and produce minimal heat due to their comple...

UGC NET Electronic Science Previous Year Question Papers with Solutions

Download Papers and Solutions Exam Pattern Preparation Tips FAQs More Home / Engineering & Other Exams / UGC NET 2026 PYQ 📊 Exam Highlights: Electronic Science (88) Feature Details Junior Research Fellowship (JRF) ₹37,000 + HRA per month Eligibility M.Sc/M.Tech in Electronics (55%) Validity of Certificate JRF (3 Years) | Lectureship (Lifetime) 📥 Download UGC NET Electronics PDFs Complete collection of previous year question papers, answer keys and explanations for Subject Code 88. Start Downloading 📂 View All Question Papers June 2026 - Question Paper Download PDF June 202...

(Filters) Free MATLAB alternative for signal analysis

Advanced Signal Filters Upload CSV (1st Col) or Audio (WAV, MP3, etc.) Generate Messy Signal (20Hz + 50Hz + 150Hz) No Operation FFT (Spectrum) Amplitude Modulation (AM) Double Sideband Supressed Carrier (DSBSC) Pulse Amplitude Modulation (PAM) Flat Top PAM Filters - LPF, HPF, BPF, Notch Principal Component Analysis (PCA) Cross Spectrum Filter Type: Signal Cleaner ...

Decision Feedback Equalizer (DFE) in MATLAB

  MATLAB Code M = 4; % QPSK numSymbols = 10000; numTrainingSymbols = 5000; chtaps = [1 0.5*exp(1i*pi/6) 0.1*exp(-1i*pi/8)]; % Generate QPSK symbols data = randi([0 M-1], numSymbols, 1); tx = pskmod(data, M, pi/4); % DFE setup eq = comm.DecisionFeedbackEqualizer; eq.ReferenceTap = 1; eq.NumForwardTaps = 5; eq.NumFeedbackTaps = 3; % SNR sweep snrVec = 0:5:25; % 0,5,10,...25 dB berBefore = zeros(size(snrVec)); berAfter = zeros(size(snrVec)); for k = 1:length(snrVec) % Apply channel and AWGN rx = awgn(filter(chtaps,1,tx), snrVec(k), 'measured' ); % BER before equalization rxDataNoEq = pskdemod(rx, M, pi/4); [~, berBefore(k)] = biterr(data, rxDataNoEq); % Equalize [y,~,~] = eq(rx, tx(1:numTrainingSymbols)); % Phase correction phaseOffset = angle(mean(conj(tx(1:numTrainingSymbols)) .* y(1:numTrainingSymbols))); yCorrected = y * exp(-1i*phaseOffset); % BER after equalization rxDataEq = pskdemod(yCorrected, M, pi/4); [...

Online Simulator for Frequency Modulatiuon and Demodulation

FM Modulation Simulator Frequency Modulation (FM) In Frequency Modulation, the frequency of the carrier signal varies in accordance with the message signal's amplitude. s FM (t) = A c cos(ω c t + k f ∫m(t)dt) where ω = 2Ï€f & k f = Frequency Sensitivity Modulation index, β = (k f * A m ) / f m Change the parameter values to see the effect. Message Freq (Hz) 1 Carrier Freq (Hz) Message Amplitude (Am) Kf (sensitivity): 50 Perform FM Demodulation 🧪 Experiment for Students: ...

The electric field of a monochromatic plane wave travelling in a lossless isotropic and homogenous medium is given by E(z, t) = ...

  Q. The electric field of a monochromatic plane wave travelling in a lossless isotropic and homogenous medium is given by E(z, t) = E₀ [x̂ cos(ωt − kz) + Å· sin(ωt − kz)] in a right-handed orthogonal co-ordinate system. Which of the following is the correct polarization of the electromagnetic wave? (A) Right-handed circularly polarized Correct answer under the IEEE convention. (B) Left-handed circularly polarized (C) Linearly polarized (D) Linearly polarized at −45° to x̂ Solution 1. Identify the electric-field components Let ψ = ωt − kz. The components along the x and y directions are: Eâ‚“ = E₀ cos ψ Eáµ§ = E₀ sin ψ Both components have equal amplitudes, the same frequency, and a phase difference of 90°. These are the conditions for circular polarization. ...

3rd and 4th Order Filters Simulation

High-Order System Simulator System Configuration 3RD ORDER 4TH ORDER STAGE 1 (2nd Order Section) Damping (ζ₁) 0.707 Frequency (ωn₁) 1000 STAGE 2 (2nd Order Section) Damping (ζ₂) 0.707 Frequency (ωn₂) 1000 -80 dB/DECADE Higher Order Control Theory A 4th Order System is the result of multiplying two 2nd-order transfer functions: H(s) = H₁(s) × H₂(s) . In the frequency domain, this means their magnitudes add (in dB) and their phases add . ...

Filter & Q-Factor Online Simulation

Unified Filter & Q-Factor Analyzer Exploring Gain, Selectivity, ripples, and Side-Lobes Design Relationship Q = f c / BW BW = -- Hz Transfer Function Characteristic |H(f)| ≈ 1 / √(1 + ε 2 C n 2 ) Control Panel Filter Type: Butterworth (Flat / No Lobes) Chebyshev (Equiripple / Side-Lobes) Center Frequency: 1000 Hz Quality Factor (Q): 5.0 Ripple/Lobe Intensity: 0.5 Recommended Design Multiple Feedba...