You are on page 1of 2

program import and plot ..........................................................................................................................

1
program data from excel file; ................................................................................................................... 1
calculate output ........................................................................................................................................ 1
list output .................................................................................................................................................. 1

program import and plot


this is use to import..... the.........

clear;
clc;

program data from excel file;


data form..... can.........

data=xlsread('signal1.xls');
x=data(:,1);
y=data(:,2);

calculate output
the equation..... can.........

out=2*y-1;

list output
output signal..... afads.........

subplot(211);plot (x,y,'r--');grid;
title('signal 1');
xlabel('x');
ylabel('y');

subplot(212);plot (x,out,'bo-');grid;
title('signal 1');
xlabel('x');
ylabel('y');

You might also like