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

% Last Modified by GUIDE v2.5 02-May-2011 15:58:05

% Begin initialization code - DO NOT EDIT










gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @vulkan_aendern_1versuch_OpeningFcn, ...
                   'gui_OutputFcn',  @vulkan_aendern_1versuch_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 vulkan_aendern_1versuch is made visible.
function vulkan_aendern_1versuch_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   command line arguments to vulkan_aendern_1versuch (see VARARGIN)

% Choose default command line output for vulkan_aendern_1versuch


handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes vulkan_aendern_1versuch wait for user response (see UIRESUME)
% uiwait(handles.figure1);
schlot=zeros(30,30) ;
for i=1:1:30
schlot(12:30,13:17) = 0.3 ;
schlot(10,14:16) =0.6  % gelber fitzel im krater


%schlot(6:10,14.1:15.4) = 0.3  erste zahl: y-achse, zweite zahl: x-achse
%obere hälfte des vulkanes

schlot(6:15,1:13) = 0.6
schlot(6:15,17:30) = 0.6
schlot(6:15,17:30) = 0.6
schlot(6:9,14:16) = 0.6
schlot(1:5,1:30) = 0.6

%schwarzer teil des kraters
schlot(13:15,5:14) = 0
schlot(13:15,16:25) = 0
schlot(11:13,7:14) = 0
schlot(11:13,16:23) = 0
schlot(8:11,9:10) = 0
schlot(8:11,20:21) = 0


%dunkelroter teil des kraters

schlot(11:12,10:14) = 0.1    
schlot(9:10,10:13) = 0.1
schlot(8:9,10:11) = 0.1
schlot(11:12,16:20) = 0.1
schlot(9:10,17:20) = 0.1
schlot(8:9,19:20) = 0.1




%vulkan restliche helle rote form unter dem boden

schlot(28:30,5:13) = 0.3
schlot(25:27,9:13) = 0.3

schlot(28:30,16:25) = 0.3
schlot(25:27,16:21) = 0.3


colormap(hot)
colorbar

%image(64*schlot)
imagesc(schlot)
hold on
%drawnow
%hold off
end


guidata(hObject, handles)



% --- Outputs from this function are returned to the command line.
function varargout = vulkan_aendern_1versuch_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;
varargout{1} = handles.output;
%delete(handles.figure1);


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
%f=get(handles.pushbutton1,'value');
%X=getappdata(handles.figure1,'schlot');
%set(handles.pushbutton1,'Value',m)


m = schlot(1:5,6)== 0.6


%plot(m,schlot);
set(handles.pushbutton1,m)


%figure;
%t=0:0.1:2*pi;
%x=cos(t);y=sin(t);
%plot(x,y,'r');
%schlot(1:4,10:20)=0.5;

%set(gcbo,'String','Apfel')  cool: funktioniert

%set(handles.pushbutton1)
guidata(hObject, handles);

%get(gcbo)             ???
