function createfigure(X1, Y1) %CREATEFIGURE(X1, Y1) % X1: vector of x data % Y1: vector of y data % Auto-generated by MATLAB on 28-Aug-2014 14:47:59 % Create figure figure1 = figure; % Create axes axes1 = axes('Parent',figure1); box(axes1,'on'); hold(axes1,'all'); X1=0:0.5:100; Y1=X1; % Create plot plot(X1,Y1,'Parent',axes1); % Create xlabel xlabel({'Time, Seconds'}); % Create legend legend(axes1,'show');