function createfigure(data_real1, data_imag1)
%CREATEFIGURE(X1,Y1,DATA_REAL1,DATA_IMAG1,DATA_ABS1,DATA_IDEX1)
% X1: vector of x data
% Y1: vector of y data
% DATA_REAL1: vector of x data
% DATA_IMAG1: vector of y data
% DATA_ABS1: vector of x data
% DATA_IDEX1: vector of y data
% Auto-generated by MATLAB on 05-Apr-2009 21:29:40
theta = linspace(0,2*pi,100);
X1 = cos(theta);
Y1 = sin(theta);
data_complex = data_real1 + data_imag1*i;
data_abs1 = abs(data_complex);
data_idex1 = 1:length(data_abs1);
% Create figure
figure1 = figure;
% Create axes
axes1 = axes('Parent',figure1,'Position',[0.01441 0 0.804 1],...
'PlotBoxAspectRatio',[1.268 1 1],...
'DataAspectRatio',[1 1 1]);
box('on');
hold('all');
% Create plot
plot(X1,Y1,'Parent',axes1);
% Create xlabel
xlabel('Real');
% Create ylabel
ylabel('Imag');
% Create plot
plot(data_real1,data_imag1,'Parent',axes1,'Marker','o','LineStyle','none',...
'Color',[1 0 0],...
'DisplayName','data_imag vs data_real');
% Create axes
axes2 = axes('Parent',figure1,'Position',[0.8818 0.1457 0.04611 0.6829]);
% Uncomment the following line to preserve the X-limits of the axes
% xlim([0.5 1.5]);
% Uncomment the following line to preserve the Y-limits of the axes
% ylim([0 44]);
box('on');
hold('all');
% Create plot
plot(data_abs1,data_idex1,'Parent',axes2,...
'DisplayName','data_idex vs data_abs');