Professional Documents
Culture Documents
1
program data from excel file; ................................................................................................................... 1
calculate output ........................................................................................................................................ 1
list output .................................................................................................................................................. 1
clear;
clc;
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');