Friday, 10 February 2017

How plot a singal in MATLAB



% plotting the graph of the sin function in MATLAB
% open the editor of your MATLAB and write this code there...
% then press F5 key run this program....
clc
close all
clear all
t=0:180; % default increment is of 1 . we can change it by t=0:increment:180;
signal=sin(t+3);
plot(t,signal,'r');
title('Sine Function');
xlabel('’0 \leq x \leq 180');
ylabel('sin(t+3)');




1 comment: