function createfigure(X1, YMatrix1)
%CREATEFIGURE(X1, YMATRIX1)
%  X1:  vector of x data
%  YMATRIX1:  matrix of y data

%  Auto-generated by MATLAB on 30-Jul-2017 16:16:37

% Create figure
figure1 = figure;

% Create axes
axes1 = axes;
hold(axes1,'on');

% Create multiple lines using matrix input to plot
plot1 = plot(X1,YMatrix1);
set(plot1(1),'DisplayName','sin','MarkerFaceColor',[0 0.498039215803146 0],...
    'MarkerEdgeColor',[0.749019622802734 0 0.749019622802734],...
    'Marker','x',...
    'LineWidth',5,...
    'LineStyle',':',...
    'Color',[0.466666668653488 0.674509823322296 0.18823529779911]);
set(plot1(2),'DisplayName','cos','Marker','*','LineWidth',2,...
    'LineStyle','none',...
    'Color',[0 0 1]);

% Create xlabel
xlabel('Time  (Second)','FontWeight','bold');

% Create title
title('Sine and Cos plots - faradars');

% Create ylabel
ylabel('Amplitude','FontWeight','bold');

% Uncomment the following line to preserve the X-limits of the axes
% xlim(axes1,[0 6.2832]);
box(axes1,'on');
grid(axes1,'on');
% Set the remaining axes properties
set(axes1,'Color',[0.992156863212585 0.917647063732147 0.796078443527222],...
    'FontSize',14,'FontWeight','bold','XColor',[0 0 0],'YColor',[0 0 0],...
    'ZColor',[0 0 0]);
% Create legend
legend1 = legend(axes1,'show');
set(legend1,'Color',[1 1 1]);

% Create textarrow
annotation(figure1,'textarrow',[0.239705882352941 0.326470588235294],...
    [0.424316455696203 0.911392405063291],'String',{'Peak'});

