| plotSeatData(x1, y1, y2, y3, y4, y5,fileName)
|
function plotSeatData(x1, y1, y2, y3, y4, y5,fileName)
%PLOTSEATDATA(X1,Y1,Y2,Y3,Y4,Y5,FILENAME)
% X1: vector of x data
% Y1: vector of y data
% Y2: vector of y data
% Y3: vector of y data
% Y4: vector of y data
% Y5: vector of y data
% FILENAME: name of file
% Auto-generated by MATLAB on 04-Aug-2006 13:11:14
% Create figure
figure1 = figure;
% Create axes
axes1 = axes('Position',[0.13 0.7458 0.3347 0.1792],'Parent',figure1);
box('on');
hold('all');
% Create plot
plot1 = plot(x1,y1,'Parent',axes1);
% Create ylabel
ylabel('Displacement (m)');
% Create title
title('Raw Signal');
% Create axes
axes2 = axes('Position',[0.5703 0.7458 0.3347 0.1792],'Parent',figure1);
box('on');
hold('all');
% Create title
title('Filtered Signal');
% Create plot
plot2 = plot(x1,y2,'Parent',axes2);
% Create axes
axes3 = axes('Position',[0.13 0.4462 0.3347 0.1792],'Parent',figure1);
box('on');
hold('all');
% Create xlabel
xlabel('Time (s)');
% Create ylabel
ylabel('Acceleratin (m/s^2)');
% Create plot
plot3 = plot(x1,y3,'Parent',axes3);
% Create axes
axes4 = axes('Position',[0.5703 0.4462 0.3347 0.1792],'Parent',figure1);
box('on');
hold('all');
% Create xlabel
xlabel('Time (s)');
% Create plot
plot4 = plot(x1,y4,'Parent',axes4);
% Create axes
axes5 = axes('Position',[0.13 0.131 0.7771 0.1948],'Parent',figure1);
box('on');
hold('all');
% Create xlabel
xlabel({'Time (s)',fileName});
% Create ylabel
ylabel('Control Force (N)');
% Create plot
plot5 = plot(x1,y5,'Parent',axes5);
|
|