# How To Do Natural Sampling Using MATLAB Simulink

In previous matlab tutorial post, we have discussed about

**How to generate sawtooth wave in MATLAB Simulink.**Now in this**Post-04**of**Module-II**, We will create a simulation model to do natural sampling.
First of all open

**new model**window, and then drag a**sine wave**block from**sources**,**pulse generator**block from**sources**,**constant block**from**sources**,**switch**from**commonly used blocks**and**scope**from**sinks**into new model file. Connect all the block as shown in**figure-1**.
Figure.1 - Simulation model for natural sampling.

In this simulation model,

**Sine wave**is the message signal on which we will perform sampling phenomena.**Pulse generator**will provide the instructions to switch on and off operation.**Constant**is used to provide zero value to clip particular portion of the sine wave.**Switch**is used to provide combination of two input i.e. sine wave and constant. The**selection window**of pulse generator, sine wave and switch is shown in**figure-2**.
Figure.2 - Selection window of Pulse generator, sine wave and switch.

Parameters of

**pulse generator**are**2**amplitude,**0.01****second**period,**50 %**pulse width and**0 second**phase delay. Parameters of**sine wave**are**2**amplitude,**20 rad/sec**frequency,**0 radian**phase and**1 micro second**sampling time. Parameters of**switch**are**1**threshold and**1 micro second**sampling time. Now closing all selection window shown in above figure-2. Run the simulation by clicking on**start simulation**tab. The output of the scope of the simulation is shown in**figure-3**.
Figure.3 - Output of the natural sampling simulation

Leave your query about

**Post-04 of Module-II**in below mention comment box.
[…] previous matlab tutorial post, we have learned, How to do natural sampling using MATLAB Simulink. Now in Post-05 of Module-II, we will create the simulation to draw the full wave rectifier […]

ReplyDelete[…] tutorial post, we have learned, How to draw the full wave rectifier waveform using MATLAB Simulink. Now in Post-06 of Module-II, we will create the simulation to draw the half wave rectifier […]

ReplyDelete[…] Read Next Post: How To Do Natural Sampling Using MATLAB Simulink […]

ReplyDelete