function varargout = KN_analyze(varargin)
% KN_ANALYZE MATLAB code for KN_analyze.fig
%      KN_ANALYZE, by itself, creates a new KN_ANALYZE or raises the existing
%      singleton*.
%
%      H = KN_ANALYZE returns the handle to a new KN_ANALYZE or the handle to
%      the existing singleton*.
%
%      KN_ANALYZE('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in KN_ANALYZE.M with the given input arguments.
%
%      KN_ANALYZE('Property','Value',...) creates a new KN_ANALYZE or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before KN_analyze_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to KN_analyze_OpeningFcn via varargin.
%
%      *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 KN_analyze

% Last Modified by GUIDE v2.5 30-Jun-2016 15:13:24

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @KN_analyze_OpeningFcn, ...
                   'gui_OutputFcn',  @KN_analyze_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 KN_analyze is made visible.
function KN_analyze_OpeningFcn(hObject, eventdata, handles, varargin)

handles.output = hObject;




% Update handles structure
guidata(hObject, handles);

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


% --- Outputs from this function are returned to the command line.
function varargout = KN_analyze_OutputFcn(hObject, eventdata, handles) 




varargout{1} = handles.output;


% --- Executes on button press in kanal5.
function kanal5_Callback(hObject, eventdata, handles)




load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN5_x.mat')
load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN5_y.mat')


get(handles.kanal5)

if handles.kannal5 == 1
    
    axes(handles.knalle)
    axes(handles.kn5)


set(plot(KN5_x,KN5_y),'Linewidth',1,'Color','cyan')
xlim([0.1, 0.5])
ylim([-1,1.5])

end




guidata(hObject,handles)




guidata(hObject,handles)

% --- Executes on button press in kanal6.
function kanal6_Callback(hObject, eventdata, handles)

load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN6_x.mat')
load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN6_y.mat')

axes(handles.knalle)






set(plot(KN6_x,KN6_y),'Linewidth',0.1,'Color','red')

xlim([0.1, 0.5])
ylim([-1,1.5])

guidata(hObject,handles)



function kanal7_Callback(hObject, eventdata, handles)

load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN7_x.mat')
load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN7_y.mat')



axes(handles.knalle)




set(plot(KN7_x,KN7_y),'Linewidth',0.1,'Color','blue')
xlim([0.1, 0.5])
ylim([-1,1.5])



guidata(hObject,handles)

function kanal10_Callback(hObject, eventdata, handles)


load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN10_x.mat')
load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN10_y.mat')

axes(handles.knalle)


set(plot(KN10_x,KN10_y),'Linewidth',0.1,'Color','green')
xlim([0.1, 0.5])
ylim([-1,1.5])




guidata(hObject,handles)


function kanal11_Callback(hObject, eventdata, handles)

load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN11_x.mat')
load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN11_y.mat')


axes(handles.knalle)



set(plot(KN11_x,KN11_y),'Linewidth',0.1,'Color','black')
xlim([0.1, 0.5])
ylim([-1,1.5])




guidata(hObject,handles)


function kanal12_Callback(hObject, eventdata, handles)


load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN12_x.mat')
load ('Z:\Eser, Haci\MessDaten\Spasticity\gottwald_links_\gottwald_KN12_y.mat')


axes(handles.knalle)

set(plot(KN12_x,KN12_y),'Linewidth',0.1,'Color','blue')
xlim([0.1, 0.5])
ylim([-1,1.5])






guidata(hObject,handles)
