| createfigure(x1, y1, y2, y3, y4, y5)
|
function createfigure(x1, y1, y2, y3, y4, y5)
%CREATEFIGURE(X1,Y1,Y2,Y3,Y4,Y5)
% 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
% Auto-generated by MATLAB on 10-Aug-2006 14:21:33
% Create figure
figure1 = figure;
% Create axes
axes1 = axes('Position',[0.13 0.7093 0.3347 0.2157],'Parent',figure1);
box('on');
hold('all');
% Create plot
plot1 = plot(x1,y1,'Parent',axes1);
% Create ylabel
ylabel('X (m)');
% Create title
title('Raw');
% Create axes
axes2 = axes('Position',[0.5703 0.7093 0.3347 0.2157],'Parent',figure1);
box('on');
hold('all');
% Create title
title('Filtered');
% Create plot
plot2 = plot(x1,y2,'Parent',axes2);
% Create axes
axes3 = axes('Position',[0.13 0.4096 0.3347 0.2157],'Parent',figure1);
box('on');
hold('all');
% Create ylabel
ylabel('A (m/s^2)');
% Create plot
plot3 = plot(x1,y3,'Parent',axes3);
% Create axes
axes4 = axes('Position',[0.5703 0.4096 0.3347 0.2157],'Parent',figure1);
box('on');
hold('all');
% Create plot
plot4 = plot(x1,y4,'Parent',axes4);
% Create axes
axes5 = axes('Position',[0.13 0.11 0.7789 0.2157],'Parent',figure1);
box('on');
hold('all');
% Create ylabel
ylabel('Force (N)');
% Create plot
plot5 = plot(x1,y5,'Parent',axes5);
% Create textbox
annotation1 = annotation(...
figure1,'textbox',...
'Position',[0.4071 -0.005556 0.2143 0.0746],...
'String',{'Control1Speed02'},...
'FitHeightToText','on');
|
|