Posts

Showing posts from September, 2020

Generate sequence of different waveform using MATLAB

Image
AIM: To generate sequence of different signals and to perform several operations on signals using MATLAB simulator. SOFTWARE USED: MATLAB TASK : Generate the following signals using MATLAB        Unit step        Unit ramp      Exponential      Sinusoidal              Exponential TASK LOGIC: This example shows how to generate widely used periodic and aperiodic waveforms. For plotting the required sequence we have to first create an array of 1’s using ones() command and an array of vectors (n) also. After this using proper alignment of array of 1’s and array of vector values (n) we can create any of the above mentioned sequence.   Plotting Unit step, Unit ramp, Exponential and Sinusoidal sequence:   CODE: clc; clear all ; close all ; N=21; x=ones(1,N); n=0:1:N-1; subplot(2,2,1); stem(n,x); %Plotting Unit step function xlabel( 'n' ); ylabel( 'x(n...