Last active
June 25, 2019 05:30
-
-
Save Arunprakash-A/d010caee12cd4406834c3ca36891fb7d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%--------------------Instructions----------------------------% | |
% 1.This file is to help you to code only the core part and act as just a template. | |
% 2.You can modify any line of the code as you wish | |
% 3.It is must to Comment on the dimenstion of all variables in the | |
% code where and when necessary. | |
% 4. Give the proper names for the variables | |
% 5.Dont take screenshot of the screen for the record submission | |
%---------------------End----------------------------------------% | |
% % Coder: Your name goes here | |
clc; | |
clear all; % Delete the variables in the workspace. | |
close all; % close all the figure windows, if any. | |
% % ******Generate Standard signal and plot it with proper labels****%% | |
%Impulse signal | |
t= % define time interval (say, -10 to 10). | |
del_t= | |
subplot(221) | |
plot(t,del_t,'linewidth',1.5) | |
axis([]); | |
grid on; | |
xlabel('time') | |
ylabel('Amplitude') | |
title('Impulse') | |
%Unit step signal | |
t= | |
u_t = | |
subplot(222) | |
plot(t,u_t,'linewidth',1.5) | |
axis([]); | |
grid on; | |
xlabel('time') | |
ylabel('Amplitude') | |
title('Unit step') | |
% ramp | |
t= | |
r_t = | |
subplot(223) | |
plot(t,r_t,'linewidth',1.5) | |
axis([]); | |
grid on; | |
xlabel('time') | |
ylabel('Amplitude') | |
title('Ramp') | |
%Exponential | |
t= | |
A = % Amplitude of exponential | |
exp_t = | |
subplot(224) | |
plot(t,exp_t,'linewidth',1.5) | |
axis([]); | |
grid on; | |
xlabel('time') | |
ylabel('Amplitude') | |
title('Exponential') | |
%% Generate four more signal and plot it using subplot command %% | |
% 1.Growing exponential, 2.damping sinusoid, 3.parabola, 4.log, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment