function createfigure1(data_real1, data_imag1)
%CREATEFIGURE1(X1,Y1,DATA_REAL1,DATA_IMAG1,DATA_ABS1,DATA_IND1)
% DATA_REAL1: vector of x data
% DATA_IMAG1: vector of y data
% DATA_ABS1: vector of x data
% DATA_IND1: vector of y data
% Generate magnitude and index vectors
data_complex = data_real1 + i*data_imag1;
data_abs1 = abs(data_complex);
data_ind1 = 1:1:length(data_abs1);
% generate unit circle
theta = linspace(0, 2*pi, 100);
x1 = cos(theta);
y1 = sin(theta);
% Auto-generated by MATLAB on 26-Jun-2007 09:21:38
% Create figure
figure1 = figure;
% Create axes
axes1 = axes('Parent',figure1,'YGrid','on','XGrid','on',...
'Position',[0.13 0.11 0.6223 0.815]);
% Uncomment the following line to preserve the X-limits of the axes
xlim([-1.5 1.5]);
% Uncomment the following line to preserve the Y-limits of the axes
ylim([-1.5 1.5]);
box('on');
hold('all');
% Create plot
plot(x1,y1,'DisplayName','y1 vs x1','Parent',axes1);
% Create xlabel
xlabel('Real');
% Create ylabel
ylabel('Imag');
% Create plot
plot(data_real1,data_imag1,'DisplayName','data_imag vs data_real',...
'Parent',axes1,...
'Marker','o',...
'LineStyle','none');
% Create axes
axes2 = axes('Parent',figure1,'Position',[0.8338 0.11 0.07115 0.815]);
% Uncomment the following line to preserve the X-limits of the axes
xlim([0.5 1.5]);
box('on');
hold('all');
% Create plot
plot(data_abs1,data_ind1,'DisplayName','data_ind vs data_abs',...
'Parent',axes2,...
'Marker','o',...
'Color',[0 0.498 0]);
% Create xlabel
xlabel('Magnitude');