function varargout = Figure_1(varargin)
%FIGURE_1 M-file for Figure_1.fig
%      FIGURE_1, by itself, creates a new FIGURE_1 or raises the existing
%      singleton*.
%
%      H = FIGURE_1 returns the handle to a new FIGURE_1 or the handle to
%      the existing singleton*.
%
%      FIGURE_1('Property','Value',...) creates a new FIGURE_1 using the
%      given property value pairs. Unrecognized properties are passed via
%      varargin to Figure_1_OpeningFcn.  This calling syntax produces a
%      warning when there is an existing singleton*.
%
%      FIGURE_1('CALLBACK') and FIGURE_1('CALLBACK',hObject,...) call the
%      local function named CALLBACK in FIGURE_1.M with the given input
%      arguments.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help Figure_1

% Last Modified by GUIDE v2.5 05-May-2009 14:56:09

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Figure_1_OpeningFcn, ...
                   'gui_OutputFcn',  @Figure_1_OutputFcn, ...
                   'gui_LayoutFcn',  [], ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
   gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before Figure_1 is made visible.
function Figure_1_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   unrecognized PropertyName/PropertyValue pairs from the
%            command line (see VARARGIN)

% Choose default command line output for Figure_1
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes Figure_1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = Figure_1_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;




% --- Executes on selection change in Frequenz.
function Frequenz_Callback(hObject, eventdata, handles)
% hObject    handle to Frequenz (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns Frequenz contents as cell array
%        contents{get(hObject,'Value')} returns selected item from Frequenz


% --- Executes during object creation, after setting all properties.
function Frequenz_CreateFcn(hObject, eventdata, handles)
% hObject    handle to Frequenz (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --------------------------------------------------------------------
function Untitled_1_Callback(hObject, eventdata, handles)
% hObject    handle to Untitled_1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --- Executes on button press in btnTest.
function btnTest_Callback(hObject, eventdata, handles)
% hObject    handle to btnTest (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
disp('Test_CallBack funktion wurde ausgeführt!!1');


% --- Executes during object creation, after setting all properties.
function Winkel_CreatFcn(hObject, eventdata, handles)
% hObject    handle to Winkel (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called







% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end

% --- Executes on button press in Plot.
function Plot_Callback(hObject, eventdata, handles)
% hObject    handle to Plot (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
sim_data = importdata('C:\Dokumente und Einstellungen\dnAuswerte.PC183-S74\Desktop\Singlef.Dateneinlese\Simulationsdaten.mat');
sim_data1 = importdata('C:\Dokumente und Einstellungen\dnAuswerte.PC183-S74\Desktop\Singlef.Dateneinlese\Hfss_Daten_1.mat');

Singlef_dateneinlese(sim_data)
Hfss_dateneinlese(sim_data1)


% Singlef_dateneinlese(sim_data)


% --- Executes during object creation, after setting all properties.
function Leistungssignal_CreateFcn(hObject, eventdata, handles)
% hObject    handle to Leistungssignal (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: place code in OpeningFcn to populate Leistungssignal


% --- Executes on button press in Plot2.
function Plot2_Callback(hObject, eventdata, handles)
% hObject    handle to Plot2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
sim_data2 = importdata('C:\Dokumente und Einstellungen\dnAuswerte.PC183-S74\Desktop\Singlef.Dateneinlese\VNA.mat');
VNA_dateneinlese(sim_data2)