Showing posts with label MATLAB. Show all posts
Showing posts with label MATLAB. Show all posts

Phase Shift Keying (PSK) Modulation Code in MATLAB

Binary Phase shift keying (BPSK) is one of the basic modulation schemes in which the phase of the carrier signal is varied or switched according to the input message pulses. When the modulation input is at logic 1, a finite number of cycles of a sinusoidal signal are transmitted and when the input is at logic 0, phase of the sinusoid is changed. We have discussed in detail about binary phase shift keying and applications of PSK modulation before.

Comments in green font color are given for better understanding of this matlab program for bpsk modulation.

Amplitude Shift Keying (ASK) Modulation Code in MATLAB

Amplitude Shift Keying is one of the basic types of digital modulation techniques. In ASK, amplitude level of the carrier signal is switched according to the binary information, keeping the phase and frequency fixed.We had already discussed about ASK modulation circuit before. Here we will provide some matlab help for you on ASK simulation using simple matlab function.

MATLAB code for Frequency modulation (FM) with modulation index

How to generate frequency modulation (FM) in MATLAB? Before that we must know what is FM (frequency modulation). In FM, frequency of the carrier signal having high frequency is varied in accordance with the instantaneous amplitude of the modulating signal having low frequency. Frequency modulated signals are widely used in television and radio transmission systems. FM signals can be easily plotted using simple MATLAB functions. The MATLAB code is shown below, the use of particular code is also given as commented form ( %Comment field ). The given matlab program is capable of accepting two input frequencies and modulation index from the user.

How to plot concentric circles in MATLAB: Getting started with MATLAB

How to draw concentric circles in MATLAB? i-St@r comes with the solution! Here is the MATLAB code for concentric circles. It plots 3 circles on a same window. The logic behind this program is quite simple, that is we know that the transfer characteristics between Sine wave and Cosine wave will produce a circle. The same idea us used here also. We has already discussed how to plot a circle using MATLAB earlier. In this post we are going to plot three concentric circles with different radius in MATLAB. Amplitude determine the radius of the circle. Green font color comments are given next to each code for better understanding.

How to draw (plot) a circle using MATLAB?

How to draw a circle in MATLAB? This is a commonly asked question from many MATLAB beginners. Here is the MATLAB code to plot a circle. The transfer characteristics between sine wave and cosine wave will give a circle. So here first we define a sine and a cosine wave, then plotting a circle in MATLAB becomes so simple, just plot the sine Vs Cosine. Following are the codes for MATLAB circle plot. The codes are well commented for easy interpretation.

Also Read:  How to plot Concentric circles in MATLAB?   

MATLAB code for Amplitude modulation (AM) with modulation index

How to generate Amplitude modulation (AM) using MATLAB? AM is a method of transmitting signals, such as sound or digital information, in which the amplitude of carrier wave is changed according to the message signal. AM is widely used in electronic communication field. The plotting of AM signal using MATLAB is very easy.

How to plot a 2D function in MATLAB? Basic steps for MATLAB plotting

You can easily plot different functions using MATLAB. To plot a function in MATLAB you must first choose an independent variable. Let that be ‘x’. This variable will form an axis of the plot, more likely the horizontal or x-axis. The vertical component of the plot is then found by using the function of this independent variable. Each point in the plot has a vertical and horizontal component. Firstly, the independent variable and its range must be defined. At the same time the number of points to be used in the plot can also be declared.

Getting started with MATLAB, How to create your first MATLAB project?

The name MATLAB stands for MATrix LABoratory, is the fourth generation programming language, and it is developed by Mathworks Inc., USA. MATLAB is great for doing array manipulation, doing specialized math functions, and for creating nice plots quick. It is a Matrix based powerful software package for Scientific, Engineering numerical computation and visualization. Symbolic computation is one of the features that make MATLAB interesting to work with,

Code for PWM (Pulse Width Modulation) generation in MATLAB

PWM (Pulse Width Modulation) can be easily generated in MATLAB using simple MATLAB functions. We have already discussed about PWM generator circuit using 741 Op-amp in previous posts. In PWM, width of the pulses are varied according to the amplitude of AF message signal. PWM is basically an analog pulse modulation technique. It does modulation of the duty cycle of the pulse.

 

Copyright © 2011 CircuitsGallery| ToS | Privacy Policy |

Contact Us | Write For Us | Advertise on Circuits Gallery | About Us