Code covered by the BSD License  

Highlights from
Signal Processor for Graphs (Pictures) update 2 - Final

image thumbnail
from Signal Processor for Graphs (Pictures) update 2 - Final by Suresh Kumar Gadi
This GUI will help us to process signal from any picture file or user defined function

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

% Last Modified by GUIDE v2.5 03-Dec-2007 11:46:10

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @gskmadespt_OpeningFcn, ...
                   'gui_OutputFcn',  @gskmadespt_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 gskmadespt is made visible.
function gskmadespt_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 gskmadespt (see VARARGIN)

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

% Update handles structure
guidata(hObject, handles);

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


%load samples
clc;
clear global
global datv001 datv002 datv003 datv004 datv005 datva000 datvb000;
datv001(1:1001,1)=-10:.02:10;
datv001(1:1001,2)=sin(2*pi*.05*datv001(1:1001,1));

datv002(1:1001,1)=-10:.02:10;
datv002(1:500,2)=0;
datv002(501:1001,2)=1;

datv003(1:1001,1)=-10:.02:10;
datv003(1:1001,2)=0;
datv003(501,2)=1;

datv004(1:1001,1)=-10:.02:10;
datv004(1:1001,2)=-1:.002:1;

datv005(1:1001,1)=-10:.02:10;
datv005(1:1001,2)=(datv004(:,2)).^2;

datva000 = datv001;
datvb000 = datv002;

axes(handles.axes1);
plot(datv001(:,1),datv001(:,2));

% --- Outputs from this function are returned to the command line.
function varargout = gskmadespt_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 listbox1.
function listbox1_Callback(hObject, eventdata, handles)
% hObject    handle to listbox1 (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 listbox1 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from listbox1
chrv000 = get(handles.listbox1,'string');
intv000 = get(handles.listbox1,'value');
set(handles.edit5,'string',chrv000(intv000));
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv001 = strcat('global datv',intvs000,';');
eval(chrv001);
axes(handles.axes1);
chrv001 = strcat('plot(datv',intvs000,'(:,1),datv',intvs000,'(:,2));');
eval(chrv001);

intv000 = get(handles.popupmenu1,'value');
if intv000 == 1;
    set(handles.axes1,'xscale','linear');
    set(handles.axes1,'yscale','linear');
end    
if intv000 == 2;
    set(handles.axes1,'xscale','log');
    set(handles.axes1,'yscale','linear');
end    
if intv000 == 3;
    set(handles.axes1,'xscale','linear');
    set(handles.axes1,'yscale','log');
end    
if intv000 == 4;
    set(handles.axes1,'xscale','log');
    set(handles.axes1,'yscale','log');
end    


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

% Hint: listbox 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 edit1_Callback(hObject, eventdata, handles)
% hObject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: get(hObject,'String') returns contents of edit1 as text
%        str2double(get(hObject,'String')) returns contents of edit1 as a double


% --- Executes during object creation, after setting all properties.
function edit1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit1 (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



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

% Hints: get(hObject,'String') returns contents of edit2 as text
%        str2double(get(hObject,'String')) returns contents of edit2 as a double


% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit2 (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 selection change in listbox2.
function listbox2_Callback(hObject, eventdata, handles)
% hObject    handle to listbox2 (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 listbox2 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from listbox2
intv000 = get(handles.listbox2,'value');
if intv000 > 0
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv001 = strcat('global datvc',intvs000,';');
eval(chrv001);
axes(handles.axes2);
chrv001 = strcat('plot(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2));');
eval(chrv001);

intv000 = get(handles.popupmenu2,'value');
if intv000 == 1;
    set(handles.axes2,'xscale','linear');
    set(handles.axes2,'yscale','linear');
end    
if intv000 == 2;
    set(handles.axes2,'xscale','log');
    set(handles.axes2,'yscale','linear');
end    
if intv000 == 3;
    set(handles.axes2,'xscale','linear');
    set(handles.axes2,'yscale','log');
end    
if intv000 == 4;
    set(handles.axes2,'xscale','log');
    set(handles.axes2,'yscale','log');
end 
end

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

% Hint: listbox 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 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)

chrv000 = get(handles.listbox1,'string');
intv000 = get(handles.listbox1,'value');
chrv000 = char(chrv000(intv000));
set(handles.edit1,'string',chrv000);
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv000 = (['global',blanks(1),'datv',intvs000,';']);
eval(chrv000);
global datva000;   
chrv000 = strcat('datva000=datv',intvs000,';');
eval(chrv000);




% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


chrv000 = get(handles.listbox1,'string');
intv000 = length(chrv000)+1;
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv001 = (['global',blanks(1),'datv',intvs000,';']);
eval(chrv001);
global datva000;   
chrv001 = strcat('datv',intvs000,'=datva000;');
eval(chrv001);
chrv001 = get(handles.edit1,'string');
chrv000(intv000) = {chrv001};
set(handles.listbox1,'string',chrv000);
set(handles.listbox1,'value',intv000);
gskmadespt('listbox1_Callback',hObject, eventdata, handles)


% --- Executes on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = get(handles.listbox1,'string');
intv000 = get(handles.listbox1,'value');
chrv000 = char(chrv000(intv000));
set(handles.edit2,'string',chrv000);
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv000 = (['global',blanks(1),'datv',intvs000,';']);
eval(chrv000);
global datvb000;   
chrv000 = strcat('datvb000=datv',intvs000,';');
eval(chrv000);




% --- Executes on button press in pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = get(handles.listbox1,'string');
intv000 = length(chrv000)+1;
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv001 = (['global',blanks(1),'datv',intvs000,';']);
eval(chrv001);
global datvb000;   
chrv001 = strcat('datv',intvs000,'=datvb000;');
eval(chrv001);
chrv001 = get(handles.edit2,'string');
chrv000(intv000) = {chrv001};
set(handles.listbox1,'string',chrv000);
set(handles.listbox1,'value',intv000);
gskmadespt('listbox1_Callback',hObject, eventdata, handles)

% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

intv000 = get(handles.listbox2,'value');
chrv000 = get(handles.listbox2,'string');
if ~(isempty(chrv000));
    if ((iscell(chrv000)) | (intv000 > 1));
        chrv000 = char(chrv000(intv000));
    else;
        chrv000 = char(chrv000);
    end;
    chrv001 = get(handles.listbox1,'string');
    intv001 = length(chrv001)+1;
    if intv001>99;
        intvs001 = num2str(intv001);
    else;
        if intv001>9;
            intvs001 = strcat('0',num2str(intv001));
        else;
            intvs001 = strcat('00',num2str(intv001));
        end;
    end;
    chrv002 = (['global',blanks(1),'datv',intvs001,';']);
    eval(chrv002);
    if intv000>99;
        intvs000 = num2str(intv000);
    else;
        if intv000>9;
            intvs000 = strcat('0',num2str(intv000));
        else;
            intvs000 = strcat('00',num2str(intv000));
        end;
    end;
    chrv002 = (['global',blanks(1),'datvc',intvs000,';']);
    eval(chrv002);
    chrv003 = strcat('datv',intvs001,'=datvc',intvs000,';');
    eval(chrv003);
    chrv001(intv001) = {chrv000};
    set(handles.listbox1,'string',chrv001);
    set(handles.listbox1,'value',intv001);
    gskmadespt('listbox1_Callback',hObject, eventdata, handles);
else;
    msgbox('Empty Output Box / Select from output box','Error');
end;



% --- Executes on selection change in listbox3.
function listbox3_Callback(hObject, eventdata, handles)
% hObject    handle to listbox3 (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 listbox3 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from listbox3
intv000 = get(handles.listbox3,'value');
intv001 = get(handles.checkbox1,'value');
chrv000 = get(handles.edit1,'string');
chrv001 = get(handles.edit2,'string');
chrv002 = get(handles.edit11,'string');
chrv003 = get(handles.edit12,'string');
chrv004 = get(handles.edit13,'string');
chrv005 = get(handles.edit14,'string');
chrv006(1) =      {'......... OPERATION IN DETAIL .........'};
if intv000 == 1
    chrv006(2) =  {''};
    chrv006(3) =  {'THIS TOOL WILL ADD 3 ZEROS BEFORE AND'};
    chrv006(4) =  {'AFTER THE SIGNAL.'};
    chrv006(5) =  {''};
    chrv006(6) =  {'WHEN A POINT IS TO BE INTERPOLATED, '};
    chrv006(7) =  {'MATLAB TAKES 3 POINTS CLOSE TO IT. SO'};
    chrv006(8) =  {'BY ADDING 3 LEADING ZEROS, WE MAKE THE'};
    chrv006(9) =  {'SIGNAL TO ZERO BEFORE AND AFTER THE '};
    chrv006(10) = {'PERIOD OF SIGNAL'};
    chrv006(11) = {''};
    chrv006(12) = {'ERROR IS SIGNIFICANT WITHOUT LEADING '};
    chrv006(13) = {'ZEROS.'};
end
if intv000 == 2
    chrv006(2) =  {''};
    chrv006(3) =  {'THIS TOOL WILL REMOVE ALL ZEROS VALUES'};
    chrv006(4) =  {'BEFORE AND AFTER THE SIGNAL.'};
    chrv006(5) =  {''};
    chrv006(6) =  {'THIS CAN BE USED FOR REDUCING THE'};
    chrv006(7) =  {'LENGTH OF THE SIGNAL FOR EXPORTING'};
    chrv006(8) =  {'ALSO THIS WILL DECREASES THE'};
    chrv006(9) =  {'CALCULATION TIME.'};
    chrv006(10) = {''};
    chrv006(11) = {'IF USER WISH MATLAB TO ESTIMATE THE'};
    chrv006(12) = {'VALUES THIS IS A MUST OPERATION AS'};
    chrv006(13) = {'LEADING ZEROS WILL MAKE SIGNAL ZERO.'};
end
if intv000 == 3
    if intv001 == 0
        set(handles.edit11,'string','1.000');
        set(handles.edit12,'string','1.000');
        chrv002 = '1';
        chrv003 = '1';
    end
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS SCALING OPERATION ON A(t)'};
    chrv006(4) =  {''};
    chrv006(5) =  {['(',chrv002,')x(',chrv000,'(',char(124'),chrv003,char(124'),'xt)']};
%    chrv006(6) =  {'THIS CAN BE USED FOR REDUCING THE'};
%    chrv006(7) =  {'LENGTH OF THE SIGNAL FOR EXPORTING'};
%    chrv006(8) =  {'ALSO THIS WILL DECREASES THE'};
%    chrv006(9) =  {'CALCULATION TIME.'};
%    chrv006(10) = {''};
%    chrv006(11) = {'IF USER WISH MATLAB TO ESTIMATE THE'};
%    chrv006(12) = {'VALUES THIS IS A MUST OPERATION AS'};
%    chrv006(13) = {'LEADING ZEROS WILL MAKE SIGNAL ZERO.'};
end
if intv000 == 4
    if intv001 == 0
        set(handles.edit11,'string','0.000');
        set(handles.edit12,'string','0.000');
        chrv002 = '0';
        chrv003 = '0';
    end
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS SHIFTING OPERATION ON A(t)'};
    chrv006(4) =  {''};
    chrv006(5) =  {['(',chrv000,')(t+(',chrv002,'))+(',chrv003,')']};
end
if intv000 == 5
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS TIME REVERSAL OPERATION ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {[chrv000,'(-t)']};
end
if intv000 == 6
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS ADDITION ON SIGNALS'};
    chrv006(4) =  {'A(t) AND B(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['(',chrv000,')(t)+(',chrv000,')(t)']};
end
if intv000 == 7
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS SUBSTRACTION ON SIGNALS'};
    chrv006(4) =  {'A(t) AND B(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['(',chrv000,')(t)-(',chrv000,')(t)']};
end
if intv000 == 8
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS MUULTIPLICATION ON SIGNALS'};
    chrv006(4) =  {'A(t) AND B(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['(',chrv000,')(t)x(',chrv000,')(t)']};
end
if intv000 == 9
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS DIVISION ON SIGNALS'};
    chrv006(4) =  {'A(t) AND B(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['(',chrv000,')(t)/(',chrv000,')(t)']};
end
if intv000 == 10
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS SQUARE ON SIGNAL'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['((',chrv000,')(t))^.5']};
end
if intv000 == 11
    if intv001 == 0
        set(handles.edit11,'string','1.000');
        chrv002 = '1';
    end
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS INVERSE OPERATION ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['(',chrv002,')/(',chrv000,')']};
end
if intv000 == 12
    if intv001 == 0
        set(handles.edit11,'string','1.000');
        set(handles.edit12,'string','1.000');
        chrv002 = '1';
        chrv003 = '1';
    end
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS COMPLEX ADDITION ON'};
    chrv006(4) =  {'A(t) AND B(t)'};
    chrv006(5) =  {''};
    chrv006(6) =  {['(',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,')']};
end
if intv000 == 13
    if intv001 == 0
        set(handles.edit11,'string','1.000');
        set(handles.edit12,'string','0.000');
        set(handles.edit13,'string','0.000');
        chrv002 = '1';
        chrv003 = '0';
        chrv004 = '0';
    end
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS HALF WAVE RECTIFICATION ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};
    chrv006(6) =  {['POSITIVE((',chrv002,')(',chrv000,')+(',chrv003,'))+(',chrv004,')']};
    chrv006(7) =  {''};
    chrv006(8) =  {'***EXAMPLE***'};
    chrv006(9) =  {''};
    chrv006(10) = {'LET A SINESOIDAL WAVE sint(t) IS '};
    chrv006(11) = {'GIVEN TO DIODE, WHOSE KNEE '};
    chrv006(12) = {'VOLTAGE IS 0.7. TO REALIZE THIS '};
    chrv006(13) = {'CONDITION WE CAN PUT C1=1, '};
    chrv006(14) = {'C2=0.7 AND C3=-0.7.'};    
end
if intv000 == 14
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS DIFFERENTIATION ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['diff(',chrv000,')']};
end
if intv000 == 15
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS INTEGRATION ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['int(',chrv000,')']};
end
if intv000 == 16
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS MEAN ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['mean(',chrv000,')']};
end
if intv000 == 17
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS VARIANCE ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['variance(',chrv000,')']};
end
if intv000 == 18
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS STANDARD DEVIATION ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['sd(',chrv000,')']};
end
if intv000 == 19
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS AUTO CORRELATION ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['acorr(',chrv000,')']};
end
if intv000 == 20
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS CROSS CORRELATION ON'};
    chrv006(4) =  {'A(t), B(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['xcorr((',chrv000,'),(',chrv001,'))']};
end
if intv000 == 21
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS AUTO COVARIANCE ON'};
    chrv006(4) =  {'A(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['acov(',chrv000,')']};
end
if intv000 == 22
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS CROSS COVARIANCE ON'};
    chrv006(4) =  {'A(t), B(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['xcov((',chrv000,'),(',chrv001,'))']};
end
if intv000 == 23
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS LINEAR CONVOLUTION ON'};
    chrv006(4) =  {'A(t), B(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['(',chrv000,')*(',chrv001,')']};
end
if intv000 == 24
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS CIRCULAR CONVOLUTION ON'};
    chrv006(4) =  {'A(t), B(t)'};
    chrv006(5) =  {''};    
    chrv006(6) =  {['(',chrv000,')o(',chrv001,')']};
end
if intv000 == 25
    if intv001 == 0
        set(handles.edit11,'string','1.000');
        set(handles.edit12,'string','0.000');
        chrv002 = '1';
        chrv003 = '0';
    end
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS DFT COMPLEX NUMBER AS SHOWN BELOW'};
    chrv006(4) =  {'dft(A(t) + i x B(t))'};
    chrv006(5) =  {''};
    chrv006(6) =  {['abs(dft((',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,'))']};
    chrv006(7) =  {''};
    chrv006(8) =  {['angle(dft((',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,'))']};
    chrv006(9) =  {''};
    chrv006(10) =  {['real(dft((',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,'))']};
    chrv006(11) =  {''};
    chrv006(12) =  {['imag(dft((',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,'))']};
end
if intv000 == 26
    if intv001 == 0
        set(handles.edit11,'string','1.000');
        set(handles.edit12,'string','1.000');
        chrv002 = '1';
        chrv003 = '1';
    end
    chrv006(2) =  {''};
    chrv006(3) =  {'PERFORMS IDFT COMPLEX NUMBER AS SHOWN BELOW'};
    chrv006(4) =  {'idft(A(t) + i x B(t))'};
    chrv006(5) =  {''};
    chrv006(6) =  {['abs(idft((',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,'))']};
    chrv006(7) =  {''};
    chrv006(8) =  {['angle(idft((',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,'))']};
    chrv006(9) =  {''};
    chrv006(10) =  {['real(idft((',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,'))']};
    chrv006(11) =  {''};
    chrv006(12) =  {['imag(idft((',chrv002,')(',chrv000,')+j(',chrv003,')(',chrv001,'))']};
end





set(handles.listbox4,'string',chrv006);
% --- Executes during object creation, after setting all properties.
function listbox3_CreateFcn(hObject, eventdata, handles)
% hObject    handle to listbox3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: listbox 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 pushbutton6.
function pushbutton6_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton6 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = get(handles.listbox1,'string');
intv000 = get(handles.listbox1,'value');
set(handles.edit5,'string',chrv000(intv000));
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv001 = strcat('global datv',intvs000,';');
eval(chrv001);
figure;

intv000 = get(handles.popupmenu1,'value');
if intv000 == 1;
    chrv001 = strcat('plot(datv',intvs000,'(:,1),datv',intvs000,'(:,2));');
    eval(chrv001);
end    
if intv000 == 2;
    chrv001 = strcat('semilogx(datv',intvs000,'(:,1),datv',intvs000,'(:,2));');
    eval(chrv001);
end    
if intv000 == 3;
    chrv001 = strcat('semilogy(datv',intvs000,'(:,1),datv',intvs000,'(:,2));');
    eval(chrv001);
end    
if intv000 == 4;
    chrv001 = strcat('loglog(datv',intvs000,'(:,1),datv',intvs000,'(:,2));');
    eval(chrv001);
end    



% --- Executes on selection change in listbox4.
function listbox4_Callback(hObject, eventdata, handles)
% hObject    handle to listbox4 (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 listbox4 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from listbox4


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

% Hint: listbox 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 selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (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 popupmenu1 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu1

intv000 = get(handles.popupmenu1,'value');
if intv000 == 1;
    set(handles.axes1,'xscale','linear');
    set(handles.axes1,'yscale','linear');
end    
if intv000 == 2;
    set(handles.axes1,'xscale','log');
    set(handles.axes1,'yscale','linear');
end    
if intv000 == 3;
    set(handles.axes1,'xscale','linear');
    set(handles.axes1,'yscale','log');
end    
if intv000 == 4;
    set(handles.axes1,'xscale','log');
    set(handles.axes1,'yscale','log');
end    


% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (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


% --- Executes on button press in pushbutton7.
function pushbutton7_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton7 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

chrv000 = get(handles.listbox2,'string');
intv000 = get(handles.listbox2,'value');
if ~isempty(chrv000)
    if intv000>99;
        intvs000 = num2str(intv000);
    else;
        if intv000>9;
            intvs000 = strcat('0',num2str(intv000));
        else;
            intvs000 = strcat('00',num2str(intv000));
        end;
    end;
    chrv001 = strcat('global datvc',intvs000,';');
    eval(chrv001);
    figure;
    intv000 = get(handles.popupmenu2,'value');
    if intv000 == 1;
        chrv001 = strcat('plot(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2));');
        eval(chrv001);
    end    
    if intv000 == 2;
        chrv001 = strcat('semilogx(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2));');
        eval(chrv001);
    end    
    if intv000 == 3;
        chrv001 = strcat('semilogy(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2));');
        eval(chrv001);
    end    
    if intv000 == 4;
        chrv001 = strcat('loglog(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2));');
        eval(chrv001);
    end    
end




% --- Executes on selection change in popupmenu2.
function popupmenu2_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (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 popupmenu2 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu2
intv000 = get(handles.popupmenu2,'value');
if intv000 == 1;
    set(handles.axes2,'xscale','linear');
    set(handles.axes2,'yscale','linear');
end    
if intv000 == 2;
    set(handles.axes2,'xscale','log');
    set(handles.axes2,'yscale','linear');
end    
if intv000 == 3;
    set(handles.axes2,'xscale','linear');
    set(handles.axes2,'yscale','log');
end    
if intv000 == 4;
    set(handles.axes2,'xscale','log');
    set(handles.axes2,'yscale','log');
end    


% --- Executes during object creation, after setting all properties.
function popupmenu2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (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


% --- Executes on button press in pushbutton8.
function pushbutton8_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton8 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

global datva000;
figure;
intv000 = get(handles.popupmenu3,'value');
if intv000 == 1;
    plot(datva000(:,1),datva000(:,2));
end    
if intv000 == 2;
    semilogx(datva000(:,1),datva000(:,2));
end    
if intv000 == 3;
    semilogy(datva000(:,1),datva000(:,2));
end    
if intv000 == 4;
    loglog(datva000(:,1),datva000(:,2));
end    


% --- Executes on selection change in popupmenu3.
function popupmenu3_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu3 (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 popupmenu3 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu3


% --- Executes during object creation, after setting all properties.
function popupmenu3_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu3 (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


% --- Executes on button press in pushbutton9.
function pushbutton9_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton9 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

global datvb000;
figure;
intv000 = get(handles.popupmenu4,'value');
if intv000 == 1;
    plot(datvb000(:,1),datvb000(:,2));
end    
if intv000 == 2;
    semilogx(datvb000(:,1),datvb000(:,2));
end    
if intv000 == 3;
    semilogy(datvb000(:,1),datvb000(:,2));
end    
if intv000 == 4;
    loglog(datvb000(:,1),datvb000(:,2));
end    


% --- Executes on selection change in popupmenu4.
function popupmenu4_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu4 (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 popupmenu4 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu4


% --- Executes during object creation, after setting all properties.
function popupmenu4_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu4 (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


% --- Executes on button press in pushbutton10.
function pushbutton10_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton10 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
gskmadespt('listbox3_Callback',hObject, eventdata, handles)

chrv000 = get(handles.edit1,'string');
chrv001 = get(handles.edit2,'string');
chrv002 = get(handles.edit11,'string');
chrvv002 = str2num(chrv002);
chrv003 = get(handles.edit12,'string');
chrvv003 = str2num(chrv003);
chrv004 = get(handles.edit13,'string');
chrvv004 = str2num(chrv004);
chrv005 = get(handles.edit14,'string');
chrvv005 = str2num(chrv005);
clear global datvc001 datvc002 datvc003 datvc004;
global datva000 datvb000 datvc001 datvc002 datvc003 datvc004;
logv000 = 0;
if length(datva000)>3
    strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
    logv000 = 1;
end
logv001 = 0;
if length(datvb000)>3
    strv001 = interp1(datvb000(:,1),datvb000(:,2),'cubic','pp');
    logv001 = 1;
end
intv002 = size(datva000);
intv003 = size(datvb000);
intv008 = abs(max(datva000(:,1)));
for intv004 = 1:(intv002-1);
    intv005 = datva000(intv004,1);
    intv006 = datva000((intv004+1),1);
    intv007 = intv006 - intv005;
    if intv008 > intv007;
        intv008 = intv007;
    end;
end;
intv009 = abs(max(datvb000(:,1)));
for intv004 = 1:(intv003-1);
    intv005 = datvb000(intv004,1);
    intv006 = datvb000((intv004+1),1);
    intv007 = intv006 - intv005;
    if intv009 > intv007;
        intv009 = intv007;
    end;
end;
intv010 = get(handles.listbox3,'value');
if intv010 == 1
    intv009 = min(intv002(1),intv002(2));
    if intv009 > 1
        intv008 = abs(max(datva000(:,1)));
        for intv004 = 1:(intv002-1)
           intv005 = datva000(intv004,1);
            intv006 = datva000((intv004+1),1);
           intv007 = intv006 - intv005;
           if intv008 > intv007
               intv008 = intv007;
           end
        end
        datvc001(4:(intv002+3),:) = datva000;
        datvc001(1:3,2) = 0;
        datvc001(((intv002+4):(intv002+6)),2) = 0;
        datvc001(3,1)=datvc001(4,1) - intv008;
        datvc001(2,1)=datvc001(3,1) - intv008;
        datvc001(1,1)=datvc001(2,1) - intv008;
        datvc001((intv002+4),1)=datvc001((intv002+3),1) + intv008;
        datvc001((intv002+5),1)=datvc001((intv002+4),1) + intv008;
        datvc001((intv002+6),1)=datvc001((intv002+5),1) + intv008;
    else
        intvs008 = inputdlg('Enter Gap Between Two adjacent points(since it is having less than three pixesl data) ','Input',1,{'0.02'});
        intv008 = str2num(char(intvs008));
        if isempty(datva000)
            datvc001(:,1) = -3*intv008:intv008:3*intv008;
            datvc001(:,2) = 0;
        else
            if datva000(1,1) == 0
                intv008 = .002;
            else
                intv008 = datva000(1,1)/2;
            end
            datvc001(4:(4),:) = datva000;
            datvc001(1:3,2) = 0;
            datvc001(((1+4):(1+6)),2) = 0;
            datvc001(3,1)=datvc001(4,1) - intv008;
            datvc001(2,1)=datvc001(3,1) - intv008;
            datvc001(1,1)=datvc001(2,1) - intv008;
            datvc001((1+4),1)=datvc001((1+3),1) + intv008;
            datvc001((1+5),1)=datvc001((1+4),1) + intv008;
            datvc001((1+6),1)=datvc001((1+5),1) + intv008;
        end
    end
%    chrv000 = get(handles.edit1,'string');
    chrv000 = strcat('zero padded(',chrv000,')');
    set(handles.listbox2,'string',chrv000);
    set(handles.listbox2,'value',1);
end
if intv010 == 2
    if logv000 == 1
        intv002 = length(datva000);
        datvc001 = datva000;
        logv000 = 0;
        for intv001 = 1 : intv002;
            if logv000 == 0 & datvc001(1,2)==0 ;
                datvc001(1,:) = [];
            else;
                logv000 = 1;
            end;
            if logv000 == 1;
                break;
            end
        end;
        logv000 = 0;
        intv003 = length(datvc001);
        if length(datvc001)>0;
            for intv001 = 1:intv003;
                if ((logv000 == 0) & (datvc001(intv003-intv001+1,2) == 0));
                    datvc001(intv003-intv001+1,:)=[];
                else
                    logv000 = 1;
                end
                if logv000 == 1
                    break;
                end
            end
%            chrv000 = get(handles.edit1,'string');
            chrv000 = strcat('zero removed(',chrv000,')');
            set(handles.listbox2,'string',chrv000);
            set(handles.listbox2,'value',1);
        end
    end
end
if intv010 == 3
    datvc001(:,1) = datva000(:,1) .* abs(chrvv003);
    datvc001(:,2) = datva000(:,2) .* chrvv002;
    chrv000 = strcat('(',chrv002,')x(',chrv000,')(t x abs(',chrv003,'))');
    set(handles.listbox2,'string',chrv000);
end
if intv010 == 4
    datvc001(:,1) = datva000(:,1) + chrvv002;
    datvc001(:,2) = datva000(:,2) + chrvv003;
    chrv000 = strcat('(',chrv000,')(t + (',chrv002,'))+(',chrv003,')');
    set(handles.listbox2,'string',chrv000);
end
if intv010 == 5
    intv011(:,1) = -1 .* datva000(:,1);
    for intv012 = 1 : intv002(1)
        datvc001(intv012,1) = intv011((intv002(1) - intv012+1),1);
        datvc001(intv012,2) = datva000((intv002(1) - intv012+1),2);
    end
    chrv000 = strcat('(',chrv000,')(-t)');
    set(handles.listbox2,'string',chrv000);
end
if intv010 == 6
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014 = intv012:intv013:intv011;   %+intv010
        datvc001(:,1) = intv014;
        datvc001(:,2)= (ppval(strv000,datvc001(:,1)) + ppval(strv001,datvc001(:,1)));
%        chrv000 = get(handles.edit1,'string');
%        chrv001 = get(handles.edit2,'string');
        chrv000 = strcat('(',chrv000,')+(',chrv001,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 7
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014 = intv012:intv013:intv011;   %+intv010
        datvc001(:,1) = intv014;
        datvc001(:,2)= (ppval(strv000,datvc001(:,1)) - ppval(strv001,datvc001(:,1)));
%        chrv000 = get(handles.edit1,'string');
%        chrv001 = get(handles.edit2,'string');
        chrv000 = strcat('(',chrv000,')-(',chrv001,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 8
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014 = intv012:intv013:intv011;   %+intv010
        datvc001(:,1) = intv014;
        datvc001(:,2)= (ppval(strv000,datvc001(:,1)) .* ppval(strv001,datvc001(:,1)));
%        chrv000 = get(handles.edit1,'string');
%        chrv001 = get(handles.edit2,'string');
        chrv000 = strcat('(',chrv000,')x(',chrv001,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 9
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014 = intv012:intv013:intv011;   %+intv010
        datvc001(:,1) = intv014;
        datvc001(:,2)= (ppval(strv000,datvc001(:,1)) ./ ppval(strv001,datvc001(:,1)));
 %       chrv000 = get(handles.edit1,'string');
 %       chrv001 = get(handles.edit2,'string');
        chrv000 = strcat('(',chrv000,')/(',chrv001,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 10
    datvc001(:,1) = datva000(:,1);
    datvc001(:,2) = (datva000(:,2)).^2;
%	chrv000 = get(handles.edit1,'string');
    chrv000 = strcat('square(',chrv000,')');
    set(handles.listbox2,'string',chrv000);
end
if intv010 == 11
    datvc001(:,1) = datva000(:,1);
    datvc001(:,2) = chrvv002 ./ datva000(:,2);
    chrv000 = strcat('(',chrv002,')/(',chrv000,')');
    set(handles.listbox2,'string',chrv000);
end
if intv010 == 12
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014 = intv012:intv013:intv011;
        intv015(:,1) = intv014;
        intv015(:,2)= chrvv002 .* (ppval(strv000,intv015(:,1)) + i .* chrvv003 .* ppval(strv001,intv015(:,1)));
        datvc001(:,1) = intv015(:,1);
        datvc002(:,1) = intv015(:,1);
        datvc001(:,2) = abs(intv015(:,2));
        datvc002(:,2) = angle(intv015(:,2));
        chrv006(1) = {['abs((',chrv002,')x(',chrv000,')+jx(',chrv003,')x(',chrv001,'))']};
        chrv006(2) = {['angle((',chrv002,')x(',chrv000,')+jx(',chrv003,')x(',chrv001,'))']};
        set(handles.listbox2,'string',chrv006);
    end
end
if intv010 == 13
    datvc001(:,1) = datva000(:,1);
    datvc001(:,2) = abs(chrvv002 .* datva000(:,2)+chrvv003) + chrvv004;
    chrv000 = strcat('abs((',chrv002,')x(',chrv000,')+(',chrv003,'))+(',chrv004,')');
    set(handles.listbox2,'string',chrv000);
end
if intv010 == 14
    if logv000 == 1
        intv011 = max(datva000(:,1));
        intv012 = min(datva000(:,1));
        intv013 = intv008;
        intv014 = intv012:intv013:intv011;
        datvc001(:,1) = intv014;
        for intv015 = 1 : intv002(1)
            datvc001(intv015,2)=(ppval(strv000,(intv014(intv015)+intv013)) - ppval(strv000,intv014(intv015)))/intv013;
        end
        chrv000 = strcat('diff(',chrv000,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 15
    if logv000 == 1
        intv011 = max(datva000(:,1));
        intv012 = min(datva000(:,1));
        intv013 = intv008;
        intv014 = intv012:intv013:intv011;
        datvc001(:,1) = intv014;
        datvc001(1,2) = datva000(1,2)*intv013;
        for intv015 = 2 : intv002(1)
            datvc001(intv015,2)=datvc001(intv015-1,2) + ppval(strv000,intv014(intv015)) * intv013;
        end
        chrv000 = strcat('int(',chrv000,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 16
    if logv000 == 1
        intv011 = max(datva000(:,1));
        intv012 = min(datva000(:,1));
        intv013 = intv008;
        intv014(:,1) = intv012:intv013:intv011;
        intv014(:,2) = ppval(strv000,intv014(:,1));
        datvc001(:,1) = intv014(:,1);
        for intv015 = 1 : intv002(1)
            datvc001(intv015,2)=mean(intv014(1:intv015,2));
        end
        chrv000 = strcat('mean(',chrv000,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 17
    if logv000 == 1
        intv011 = max(datva000(:,1));
        intv012 = min(datva000(:,1));
        intv013 = intv008;
        intv014(:,1) = intv012:intv013:intv011;
        intv014(:,2) = ppval(strv000,intv014(:,1));
        datvc001(:,1) = intv014(:,1);
        for intv015 = 1 : intv002(1)
            datvc001(intv015,2)=var(intv014(1:intv015,2));
        end
        chrv000 = strcat('var(',chrv000,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 18
    if logv000 == 1
        intv011 = max(datva000(:,1));
        intv012 = min(datva000(:,1));
        intv013 = intv008;
        intv014(:,1) = intv012:intv013:intv011;
        intv014(:,2) = ppval(strv000,intv014(:,1));
        datvc001(:,1) = intv014(:,1);
        for intv015 = 1 : intv002(1)
            datvc001(intv015,2)=std(intv014(1:intv015,2));
        end
        chrv000 = strcat('sd(',chrv000,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 19
    if logv000 == 1
        intv011 = max(datva000(:,1));
        intv012 = min(datva000(:,1));
        intv013 = intv008;
        intv014 = intv012:intv013:intv011;
        intv015 = xcorr(ppval(strv000,intv014));
        intv016 = length(intv015);
        datvc001(:,1) = intv012:intv013:(intv012+intv013*(intv016-1));
        datvc001(:,2) = intv015;
        chrv000 = strcat('acorr(',chrv000,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 20
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014 = intv012:intv013:intv011;
        intv015 = xcorr(ppval(strv000,intv014),ppval(strv001,intv014));
        intv016 = length(intv015);
        datvc001(:,1) = intv012:intv013:(intv012+intv013*(intv016-1));
        datvc001(:,2) = intv015;
        chrv000 = strcat('xcorr((',chrv000,'),(',chrv001,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 21
    if logv000 == 1
        intv011 = max(datva000(:,1));
        intv012 = min(datva000(:,1));
        intv013 = intv008;
        intv014(:,1) = intv012:intv013:intv011;
        intv014(:,2) = ppval(strv000,intv014(:,1));
        datvc001(:,1) = intv014(:,1);
        for intv015 = 1 : intv002(1)
            datvc001(intv015,2)=cov(intv014(1:intv015,2));
        end
        chrv000 = strcat('acov(',chrv000,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 22
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014(:,1) = intv012:intv013:intv011;
        intv014(:,2) = ppval(strv000,intv014(:,1));
        intv014(:,3) = ppval(strv001,intv014(:,1));
        datvc001(:,1) = intv014(:,1);
        for intv015 = 1 : intv002(1)
            intv016=cov(intv014(1:intv015,2),intv014(1:intv015,3));
            datvc001(intv015,2) = intv016(1);
        end
        chrv000 = strcat('xcov((',chrv000,'),(',chrv001,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 23
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014 = intv012:intv013:intv011;
        intv015 = conv(ppval(strv000,intv014),ppval(strv001,intv014));
        intv016 = length(intv015);
        datvc001(:,1) = intv012:intv013:(intv012+intv013*(intv016-1));
        datvc001(:,2) = intv015;
        chrv000 = strcat('(',chrv000,')*(',chrv001,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 24
    if logv000 == 1 && logv001 == 1
        intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
        intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
        intv013 = min(intv008,intv009);
        intv014 = intv012:intv013:intv011;
        datvc001(:,1) = intv014;
        intv015 = fft(ppval(strv000,datvc001(:,1)));
        intv016 = fft(ppval(strv001,datvc001(:,1)));
        intv017 = intv015 .* intv016;
        datvc001(:,2) = ifft(intv017);
        chrv000 = strcat('(',chrv000,')o(',chrv001,')');
        set(handles.listbox2,'string',chrv000);
    end
end
if intv010 == 25
    if logv000 == 1 && logv001 == 1
        if chrvv003 == 0
            intv011 = max(datva000(:,1));
            intv012 = min(datva000(:,1));
            intv013 = intv012:intv008:intv011;
            intv014 = length(intv013);
            datvc001(:,1) = (0 : intv014-1) ./ intv008 ./ (intv014-1);
            datvc001(:,2)= fft(chrvv002 .* (ppval(strv000,intv013)));
        else
            intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
            intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
            intv013 = min(intv008,intv009);
            intv014 = intv012:intv013:intv011;   %+intv010
            datvc001(:,1) = (0 : length(intv014) - 1) ./ intv013 ./ (length(intv014)-1);
            datvc001(:,2)= fft(chrvv002 .* (ppval(strv000,intv014) + i .* chrvv003 .* ppval(strv001,intv014)));
        end
        datvc002(:,1) = datvc001(:,1);
        datvc003(:,1) = datvc001(:,1);
        datvc004(:,1) = datvc001(:,1);
        datvc002(:,2) = angle(datvc001(:,2));
        datvc003(:,2) = real(datvc001(:,2));
        datvc004(:,2) = imag(datvc001(:,2));
        datvc001(:,2) = abs(datvc001(:,2));
        chrv010(1) = {['abs(dft((',chrv002,')x(',chrv000,')+i(',chrv003,')(',chrv001,')))']};
        chrv010(2) = {['angle(dft((',chrv002,')x(',chrv000,')+i(',chrv003,')(',chrv001,')))']};
        chrv010(3) = {['real(dft((',chrv002,')x(',chrv000,')+i(',chrv003,')(',chrv001,')))']};
        chrv010(4) = {['imag(dft((',chrv002,')x(',chrv000,')+i(',chrv003,')(',chrv001,')))']};
        set(handles.listbox2,'string',chrv010);
    end
end
if intv010 == 26
    if logv000 == 1 && logv001 == 1
        if chrvv003 == 0
            intv011 = max(datva000(:,1));
            intv012 = min(datva000(:,1));
            intv013 = intv012:intv008:intv011;
            intv014 = length(intv013);
            datvc001(:,1) = (0 : intv014-1) ./ intv008 ./ (intv014-1);
            datvc001(:,2)= ifft(chrvv002 .* (ppval(strv000,intv013)));
        else
            intv011 = max(max(datva000(:,1)),max(datvb000(:,1)));
            intv012 = min(min(datva000(:,1)),min(datvb000(:,1)));
            intv013 = min(intv008,intv009);
            intv014 = intv012:intv013:intv011;   %+intv010
            datvc001(:,1) = (0 : length(intv014) - 1) ./ intv013 ./ (length(intv014)-1);
            datvc001(:,2)= ifft(chrvv002 .* (ppval(strv000,intv014) + i .* chrvv003 .* ppval(strv001,intv014)));
        end
        datvc002(:,1) = datvc001(:,1);
        datvc003(:,1) = datvc001(:,1);
        datvc004(:,1) = datvc001(:,1);
        datvc002(:,2) = angle(datvc001(:,2));
        datvc003(:,2) = real(datvc001(:,2));
        datvc004(:,2) = imag(datvc001(:,2));
        datvc001(:,2) = abs(datvc001(:,2));
        chrv010(1) = {['abs(idft((',chrv002,')x(',chrv000,')+i(',chrv003,')(',chrv001,')))']};
        chrv010(2) = {['angle(idft((',chrv002,')x(',chrv000,')+i(',chrv003,')(',chrv001,')))']};
        chrv010(3) = {['real(idft((',chrv002,')x(',chrv000,')+i(',chrv003,')(',chrv001,')))']};
        chrv010(4) = {['imag(idft((',chrv002,')x(',chrv000,')+i(',chrv003,')(',chrv001,')))']};
        set(handles.listbox2,'string',chrv010);
    end
end

%-----------------start updating new functions here------------------------













%--------------------------------------------------------------------------






if ~isempty(datvc001)
    set(handles.listbox2,'value',1);
    gskmadespt('listbox2_Callback',hObject, eventdata, handles);
else
    set(handles.listbox2,'string','');
    set(handles.listbox2,'value',0);
    axes(handles.axes2);
    plot([0]);
    msgbox([{'Data not processed due to one or more of following reason(s)'}...
        ,{'__________________________________________________'},{''},{''},...
        {'Data less than 3 pixels'},{'(or)'},{'formula not updated in programme'}...
        ,{'(or)'},{'result is empty(i.e. result does not exists)'}],'Information');
end


% --- Executes on button press in pushbutton11.
function pushbutton11_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton11 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = cell(get(handles.listbox1,'string'));
intv000 = get(handles.listbox1,'value');
if intv000<6
    msgbox('You are not allowed to rename Sample Data','Information');
else
    chrv001 = get(handles.edit5,'string');
    chrv000(intv000) = chrv001;
    set(handles.listbox1,'string',chrv000);
end




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

% Hints: get(hObject,'String') returns contents of edit3 as text
%        str2double(get(hObject,'String')) returns contents of edit3 as a double


% --- 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



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

% Hints: get(hObject,'String') returns contents of edit5 as text
%        str2double(get(hObject,'String')) returns contents of edit5 as a double


% --- Executes during object creation, after setting all properties.
function edit5_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit5 (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 pushbutton12.
function pushbutton12_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton12 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = get(handles.listbox1,'string');
intv000 = get(handles.listbox1,'value');
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv001 = strcat('global datv',intvs000,';');
eval(chrv001);
chrv001 = strcat('length(datv',intvs000,');');
eval(chrv001);
if eval(chrv001)>3;
    chrv001 = strcat('strv000 = interp1(datv',intvs000,'(:,1),datv',...
        intvs000,'(:,2),',char(39'),'cubic',char(39'),',',char(39'),'pp',char(39'),');');
    
    eval(chrv001);
    chrv001 = strcat('intv001 = max(datv',intvs000,'(:,1));');
    eval(chrv001);
    chrv001 = strcat('intv002 = min(datv',intvs000,'(:,1));');
    eval(chrv001);
    chrv001 = strcat('intv003 = size(datv',intvs000,',1);');
    eval(chrv001);
    chrv001 = strcat('intv004 = max(datv',intvs000,'(:,2));');
    eval(chrv001);
    chrv001 = strcat('intv005 = min(datv',intvs000,'(:,2));');
    eval(chrv001);
    chrv001 = strcat('intv007 = datv',intvs000,'(intv006,1);');
    chrv002 = strcat('intv008 = datv',intvs000,'((intv006+1),1);');
    intv010 = abs(intv001);
    if intv003 > 1
        for intv006 = 1:(intv003-1);
            eval(chrv001);
            eval(chrv002);
            intv009 = intv008 - intv007;
            if intv010 > intv009;
                intv010 = intv009;
            end;
        end;
        intvs010 = num2str(intv010);
    else
        intvs010 = '-NA- (only one point available)';
    end
    chrv003 = [{['Variable Name used in workspace ...:',blanks(12),strcat('datv',intvs000)]},...
        {char(13')},{'_______________________________________________________'},{char(13')},...
        {char(13')},{'Horizontal Axis Details'},{char(13')},{['Minimum Value ...:',blanks(43),...
        num2str(intv002)]},{['Maximum Value ...:',blanks(42),num2str(intv001)]},...
        {['Number of points available ...:',blanks(25),num2str(intv003)]},...
        {['Minimum Gap Between Adjacent points ...:',blanks(5),intvs010]},{char(13')},...
        {'_______________________________________________________'},{char(13')},{char(13')},...
        {'Vertical Axis Details'},char(13'),{['Minimum Value ...:',blanks(43),num2str(intv005)]},...
        {['Maximum Value ...:',blanks(42),num2str(intv004)]},{char(13')},...
        {'_______________________________________________________'},{char(13')},{char(13')},...
        {'Proper maching of the resolution will decrease the time of processing.'},{char(13')},...
        {'We can separetaly load the saved workspace file in MATLAB for user defined operation'},...
        {char(13')},{char(13')},{char(13')}];
    
    chrv004 = strcat(chrv000(intv000),' :: Information');
    msgbox(chrv003,char(chrv004));
else
    msgbox('should be having minimum of 3 pixels for obtaining information','Information');
end


% --- Executes on button press in pushbutton13.
function pushbutton13_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton13 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[chrv000,chrv001]=uiputfile('*.bmp','Select Image File to save');
if num2str(chrv000) == '0';
    msgbox('Select Picture To Save Picture file','Information');
else
    intv000 = get(handles.listbox1,'value');
    if intv000>99;
        intvs000 = num2str(intv000);
    else;
        if intv000>9;
           intvs000 = strcat('0',num2str(intv000));
        else;
           intvs000 = strcat('00',num2str(intv000));
       end;
    end;
    chrv002 = (['global',blanks(1),'datv',intvs000,';']);
    eval(chrv002);
    chrv002 = strcat('intv001=','datv',intvs000,';');
    eval(chrv002);
    strv000 = interp1(intv001(:,1),intv001(:,2),'cubic','pp');
    intv002 = max(intv001(:,1));
    intv003 = min(intv001(:,1));
    intv004 = length(intv001);
    intv005 = intv002;
    for intv016 = 1:(intv004-1);
        intv007 = intv001(intv016,1);
        intv008 = intv001((intv016+1),1);
        intv009 = intv008- intv007;
        if intv005 > intv009;
            intv005 = intv009;
        end
    end
    intv006(:,1) = intv003:intv005:(intv002);   % +intv005
    intv006(:,2) = ppval(strv000,intv006(:,1));
    intv013 = max(intv006(:,2));
    intv014 = min(intv006(:,2));
    intv004 = length(intv006);
    chrv004 = inputdlg('Enter Y-Axis Resolution (X-Axis Resolution is taken as per available length)','Y-Axis Resol - Default is 801',1,{'801'});
    if isempty(chrv004);
        chrvv004 = 801;
    else;
        chrvv004 = str2num(char(chrv004));
    end
    intv014 = (chrvv004-3)/(intv014-intv013);
    intv015 = 2- intv014*intv013;
    intv006(:,2) = round(intv006(:,2) .* intv014 + intv015);
    intv007(1:chrvv004,1:intv004,1:3) = 255;
    for intv016 = 1 : intv004;
        intv007(intv006(intv016,2),intv016,1) = 0;
        intv007(intv006(intv016,2),intv016,2) = 0;
        intv007(intv006(intv016,2),intv016,3) = 0;
    end
    imwrite(intv007,strcat(chrv001,chrv000),'bmp');
end


% --- Executes on button press in pushbutton14.
function pushbutton14_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton14 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[chrv002,chrv003]=uiputfile('*.mat','Select a File to store Data');
if ~(num2str(chrv002) == '0');

chrv000 = get(handles.listbox1,'string');
intv000 = length(get(handles.listbox1,'string'));
for intv001 = 1 : intv000
    if intv001>99;
        intvs001 = num2str(intv001);
    else;
        if intv001>9;
            intvs001 = strcat('0',num2str(intv001));
        else;
            intvs001 = strcat('00',num2str(intv001));
        end;
    end;
    chrv001 = (['global',blanks(1),'datv',intvs001,';']);
    eval(chrv001);
    save(fullfile(chrv003,chrv002));
end

else
    msgbox('You Have Specify File To Save Data','Information');
end



% --- Executes on button press in pushbutton15.
function pushbutton15_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton15 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

[chrv005,chrv006]=uigetfile('*.mat','Select a File to Load Data');
if (num2str(chrv005) == '0');
    msgbox('You Have Specify File To Load Data','Information');
else
    chrv007 = questdlg([{'This will delete present data!!!'};{'Are You Sure ???'}],'Question ?','Yes','No.','No.','Yes');
    if chrv007 == 'Yes'
        chrv008 = handles;
        load(fullfile(chrv006,chrv005));
        set(chrv008.listbox1,'string',cellstr(chrv000));
        set(chrv008.listbox1,'value',1);
        gskmadespt('listbox1_Callback',hObject, eventdata, handles)
    end
end


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

% Hints: get(hObject,'String') returns contents of edit6 as text
%        str2double(get(hObject,'String')) returns contents of edit6 as a double


% --- Executes during object creation, after setting all properties.
function edit6_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit6 (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



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

% Hints: get(hObject,'String') returns contents of edit7 as text
%        str2double(get(hObject,'String')) returns contents of edit7 as a double


% --- Executes during object creation, after setting all properties.
function edit7_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit7 (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



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

% Hints: get(hObject,'String') returns contents of edit8 as text
%        str2double(get(hObject,'String')) returns contents of edit8 as a double


% --- Executes during object creation, after setting all properties.
function edit8_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit8 (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



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

% Hints: get(hObject,'String') returns contents of edit9 as text
%        str2double(get(hObject,'String')) returns contents of edit9 as a double


% --- Executes during object creation, after setting all properties.
function edit9_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit9 (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 selection change in popupmenu5.
function popupmenu5_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu5 (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 popupmenu5 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu5


% --- Executes during object creation, after setting all properties.
function popupmenu5_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu5 (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


% --- Executes on selection change in popupmenu6.
function popupmenu6_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu6 (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 popupmenu6 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu6


% --- Executes during object creation, after setting all properties.
function popupmenu6_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu6 (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


% --- Executes on button press in pushbutton16.
function pushbutton16_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton16 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)









chrv002 = get(handles.edit6,'string');
chrvv002 = str2num(chrv002);
chrv003 = get(handles.edit7,'string');
chrvv003 = str2num(chrv003);
chrv004 = get(handles.edit9,'string');
chrvv004 = str2num(chrv004);
chrv005 = get(handles.edit8,'string');
chrvv005 = str2num(chrv005);
chrv006 = get(handles.popupmenu5,'string');
chrvv006 = get(handles.popupmenu5,'value');
chrv006 =chrv006(chrvv006);
chrv007 = get(handles.popupmenu6,'string');
chrvv007 = get(handles.popupmenu6,'value');
chrv007 =chrv007(chrvv007);
intv010 = length(get(handles.listbox1,'string'))+1;
%**************************conditions for proceeding**************
logv000 = char(chrv006) == 'INV LOG...';
logv001 = char(chrv007) == 'INV LOG...';
if ~(((chrvv002>=chrvv003) | (chrvv004<=chrvv005)) | ((logv000(3)) ...
        & ((chrvv002<=0) | (chrvv003<=0))) | ((logv001(3)) & ((chrvv004<=0) | (chrvv005<=0))));

[chrv000,chrv001]=uigetfile('*.bmp;*.dib;*.jpeg;*.jpe;*.jfif;*.gif;*.tif;*.tiff,*.png;*.jpg','Select Image File');
%**************************conditions for proceeding**************
if ~((num2str(chrv000) == '0') | (num2str(chrv000) == '0'))
un8v000=imread(fullfile(chrv001,chrv000));
[intv000(1),intv000(2),intv000(3)]=size(un8v000);
intv004(1:intv000(2),1)=255;
intv005(1:intv000(2),1)=1;
intv004(1:intv000(2),2)=255;
intv005(1:intv000(2),2)=1;
intv004(1:intv000(2),3)=255;
intv005(1:intv000(2),3)=1;
for intv001 = 1:intv000(1);
    for intv002 = 1:intv000(2);
        for intv003 = 1:intv000(3);
            if un8v000(intv001,intv002,intv003)<intv004(intv002,intv003);
                intv004(intv002,intv003)=un8v000(intv001,intv002,intv003);
                intv005(intv002,intv003)=intv001;
            end;
        end;
    end;
end;
for intv001 = 1:intv000(2);
    intv003(1:2) = 0;
    for intv002 = 1:3;
        if intv005(intv001,intv002)>1;
            intv003(1) = intv003(1)+intv005(intv001,intv002);
            intv003(2) = intv003(2)+1;
        else;
            if intv005(intv001,intv002)==1;
                intv005(intv001,intv002)=0;
            end; 
        end;
    end
    if intv003(2) > 0;
        intv005(intv001,4) = round(intv003(1)/intv003(2));
    end
end;
intv005(1:intv000(2),5)=0;
for intv001 = 1:intv000(2);
    if intv005(intv001,4)>0;
        intv005(intv001,5)=intv005(intv001,4);
    else;
        intv005(intv001,5)=inf;
    end;
end;


if intv010>99;
    intvs010 = num2str(intv010);
else;
    if intv010>9;
        intvs010 = strcat('0',num2str(intv010));
    else;
        intvs010 = strcat('00',num2str(intv010));
    end;
end;
intvs010 = strcat('datv',intvs010);


chrv008 = (['global',blanks(1),intvs010,';']);
eval(chrv008);


eqn001 = strcat(intvs010,'(1:intv000(2),1:2)=0;');;
eval(eqn001);
if char(chrv006) == 'LINEAR....';
    eqn000 = strcat('x*(1)+y=',num2str(chrvv002));
    eqn001 = strcat('x*(',num2str(intv000(2)),')+y=',num2str(chrvv003));
    stru000 = solve(eqn000,eqn001);
    intv006(1:2)=0;
    intv006(1) = double(getfield(stru000,'x'));
    intv006(2) = double(getfield(stru000,'y'));
    eqn000 = strcat(intvs010,'(intv001,1)=intv001*(',num2str(intv006(1)),')+(',num2str(intv006(2)),');');
    for intv001 = 1:intv000(2)
        eval(eqn000);
    end
end
if char(chrv007) == 'LINEAR....';
    eqn000 = strcat('x*(',num2str(min(intv005(1:intv000(2),5))),')+y=',num2str(chrvv004));
    eqn001 = strcat('x*(',num2str(max(intv005(1:intv000(2),4))),')+y=',num2str(chrvv005));
    stru000 = solve(eqn000,eqn001);
    intv006(1:2)=0;
    intv006(1) = double(getfield(stru000,'x'));
    intv006(2) = double(getfield(stru000,'y'));
    eqn000 = strcat(intvs010,'(intv001,2)=intv005(intv001,4)*(',num2str(intv006(1)),')+(',num2str(intv006(2)),');');
    for intv001 = 1:intv000(2);
        if intv005(intv001,4)~=0;
            eval(eqn000);
        end;
    end;
end;


if char(chrv006) == 'LOG.......';
    eqn000 = strcat('x*(log10(y*(1)))=',num2str(chrvv002));
    eqn001 = strcat('x*(log10(y*(',num2str(intv000(2)),')))=',num2str(chrvv003));
    stru000 = solve(eqn000,eqn001);
    intv006(1:2)=0;
    intv006(1) = double(getfield(stru000,'x'));
    intv006(2) = double(getfield(stru000,'y'));
    eqn000 = strcat(intvs010,'(intv001,1)=(',num2str(intv006(1)),')*(log10(intv001*(',num2str(intv006(2)),')));');
    for intv001 = 1:intv000(2)
        eval(eqn000);
    end
end



if char(chrv007) == 'LOG.......';
    eqn000 = strcat('x*(log10(y*(',num2str(intv000(1)+1-max(intv005(1:intv000(2),4))),')))=',num2str(chrvv005));
    eqn001 = strcat('x*(log10(y*(',num2str(intv000(1)+1-min(intv005(1:intv000(2),5))),')))=',num2str(chrvv004));
    stru000 = solve(eqn000,eqn001);
    intv006(1:2)=0;
    intv006(1) = double(getfield(stru000,'x'));
    intv006(2) = double(getfield(stru000,'y'));
    eqn000 = strcat(intvs010,'(intv001,2)=(',num2str(intv006(1)),')*(log10((intv000(1)+1-intv005(intv001,4))*(',num2str(intv006(2)),')));');
	eqn001 = strcat(intvs010,'(intv001,2)=0;');
    for intv001 = 1:intv000(2);
        if intv005(intv001,4)~=0;
            eval(eqn000);
        else
            eval(eqn001);
        end;
    end;
end;




if char(chrv006) == 'INV LOG...';
    eqn000 = strcat('log10(x)+(y*(1))=',num2str(log10(chrvv002)));
    eqn001 = strcat('log10(x)+(y*(',num2str(intv000(2)),'))=',num2str(log10(chrvv003)));
    stru000 = solve(eqn000,eqn001);
    intv006(1:2)=0;
    intv006(1) = double(getfield(stru000,'x'));
    intv006(2) = double(getfield(stru000,'y'));
    eqn000 = strcat(intvs010,'(intv001,1)=(',num2str(intv006(1)),')*(10^(intv001*(',num2str(intv006(2)),')));');
    for intv001 = 1:intv000(2)
        eval(eqn000);
    end
end



if char(chrv007) == 'INV LOG...';
    eqn000 = strcat('log10(x)+(y*(',num2str(intv000(1)+1-max(intv005(1:intv000(2),4))),'))=',num2str(log10(chrvv005)));
    eqn001 = strcat('log10(x)+(y*(',num2str(intv000(1)+1-min(intv005(1:intv000(2),5))),'))=',num2str(log10(chrvv004)));
    stru000 = solve(eqn000,eqn001);
    intv006(1:2)=0;
    intv006(1) = double(getfield(stru000,'x'));
    intv006(2) = double(getfield(stru000,'y'));
    eqn000 = strcat(intvs010,'(intv001,2)=(',num2str(intv006(1)),')*(10^((intv000(1)+1-intv005(intv001,4))*(',num2str(intv006(2)),')));');
	eqn001 = strcat(intvs010,'(intv001,2)=0;');
    for intv001 = 1:intv000(2);
        if intv005(intv001,4)~=0;
            eval(eqn000);
        else
            eval(eqn001);
        end;
    end;
end;

chrv007 = get(handles.listbox1,'string');
chrv007(intv010) = {(chrv000)};
set(handles.listbox1,'string',cellstr(chrv007));
set(handles.listbox1,'value',intv010);
gskmadespt('listbox1_Callback',hObject, eventdata, handles)

else
    msgbox('Select Picture To Collect data for Operations','Information')
end
else
    msgbox('Input Limits Are Not Proper','Error')
end











% --- Executes on button press in pushbutton17.
function pushbutton17_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton17 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

chrv000 = inputdlg({'Function of desire with t as variable','Start value','Number of Samples (minimise for fast processing)                             .','Sample Rate'},'Enter the required signal details',1,{'sin(2*pi*100*t)','0','2048','8000'});
if isempty(chrv000);
    msgbox([{'Signal Not Generated'},{char(13')},{'Cancelled By User'}],'Information');
else;
    chrv001 = char(chrv000(1));
    intv002 = str2num(char(chrv000(2)));
    intv003 = str2num(char(chrv000(3)));
    intv004 = str2num(char(chrv000(4)));
    if ((abs(intv004)~=intv004) | (double(int32(intv003))~=intv003) | (abs(intv003)~=intv003));
         msgbox([{'Signal not generated'},{char(13')},{'Improper Data Entered By User'}],'Error');
    else;
        t = intv002 : 1 / intv004  :((intv003 - 1) / intv004 + intv002);
        intv006 = eval(chrv001);
        chrv002 = get(handles.listbox1,'string');
        intv007 = length(chrv002) + 1;
        if intv007>99;
            intvs007 = num2str(intv007);
        else;
            if intv007>9;
                intvs007 = strcat('0',num2str(intv007));
            else;
                intvs007 = strcat('00',num2str(intv007));
            end;
        end;
        chrv003 = strcat('global datv',intvs007,';');
        eval(chrv003);
        chrv003 = strcat('datv',intvs007,'(:,1) = t;');
        eval(chrv003);
        chrv003 = strcat('datv',intvs007,'(:,2) = intv006;');
        eval(chrv003);
        chrv002(intv007) = cellstr(chrv001);
        set(handles.listbox1,'string',cellstr(chrv002));
        set(handles.listbox1,'value',intv007);
        gskmadespt('listbox1_Callback',hObject, eventdata, handles)
    end;
end;
    



% --- Executes on button press in pushbutton18.
function pushbutton18_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton18 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
intv000 = get(handles.listbox1,'value');
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
intv001 = length(get(handles.listbox1,'string'));
if intv001>99;
    intvs001 = num2str(intv001);
else;
    if intv001>9;
        intvs001 = strcat('0',num2str(intv001));
    else;
        intvs001 = strcat('00',num2str(intv001));
    end;
end;
if intv000>5
    if intv001>intv000 ;
        for intv002 = (intv000+1) : intv001;
            intv003 = intv002-1;
            intv004 = intv002;
            if intv003>99;
                intvs003 = num2str(intv003);
            else;
                if intv003>9;
                    intvs003 = strcat('0',num2str(intv003));
               else;
                  intvs003 = strcat('00',num2str(intv003));
                end;
            end;
            
            if intv004>99;
                intvs004 = num2str(intv004);
            else;
                if intv004>9;
                    intvs004 = strcat('0',num2str(intv004));
               else;
                  intvs004 = strcat('00',num2str(intv004));
                end;
            end;
            chrv000 = (['global',blanks(1),'datv',intvs003,';']);
            chrv001 = (['global',blanks(1),'datv',intvs004,';']);
            eval(chrv000);
            eval(chrv001);
            chrv000 = strcat('datv',intvs003,'=datv',intvs004,';');
            eval(chrv000);
        end;
    end;
    chrv001 = (['clear global',blanks(1),'datv',intvs001,';']);
    eval(chrv001);
    chrv002 = get(handles.listbox1,'string');
    chrv003 = strcat('chrv002(',num2str(intv000),')=[];');
    eval(chrv003);
    set(handles.listbox1,'string',cellstr(chrv002));
    set(handles.listbox1,'value',intv000-1);    
    gskmadespt('listbox1_Callback',hObject, eventdata, handles);
else;
    msgbox('You Are Not Allowed To Remove Sample Data','Information');
end;


% --- Executes on button press in pushbutton19.
function pushbutton19_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton19 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = get(handles.listbox1,'string');
intv000 = get(handles.listbox1,'value');
set(handles.edit5,'string',chrv000(intv000));
if intv000>99;
    intvs000 = num2str(intv000);
else;
    if intv000>9;
        intvs000 = strcat('0',num2str(intv000));
    else;
        intvs000 = strcat('00',num2str(intv000));
    end;
end;
chrv001 = strcat('global datv',intvs000,';');
eval(chrv001);
figure;

intv000 = get(handles.popupmenu1,'value');
if intv000 == 1;
    chrv001 = strcat('plot(datv',intvs000,'(:,1),datv',intvs000,'(:,2),',char(39'),'.',char(39'),');');
    eval(chrv001);
end    
if intv000 == 2;
    chrv001 = strcat('semilogx(datv',intvs000,'(:,1),datv',intvs000,'(:,2),',char(39'),'.',char(39'),');');
    eval(chrv001);
end    
if intv000 == 3;
    chrv001 = strcat('semilogy(datv',intvs000,'(:,1),datv',intvs000,'(:,2),',char(39'),'.',char(39'),');');
    eval(chrv001);
end    
if intv000 == 4;
    chrv001 = strcat('loglog(datv',intvs000,'(:,1),datv',intvs000,'(:,2),',char(39'),'.',char(39'),');');
    eval(chrv001);
end    


% --- Executes on button press in pushbutton20.
function pushbutton20_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton20 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000(1) = {['This is simple signal processing tool.']};
chrv000(2) = {['']};
chrv000(3) = {['It is very helpful for working with the picture files.']};
chrv000(4) = {['We can import the picture files and then we can process.']};
chrv000(5) = {['']};
chrv000(6) = {['Prepared by "Suresh Kumar Gadi"']};
msgbox(chrv000,'About');



% --- Executes on button press in pushbutton21.
function pushbutton21_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton21 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

chrv000(1) = {['Updating new operations by users is made easy in this version, you can update new fumctions as required by user.']};
chrv000(2) = {['']};
chrv000(3) = {['To update']};
chrv000(4) = {['Open m-editor of this GUI, goto pushbutton10. Scroll down to find space provided for updating.']};
chrv000(5) = {['Look into the few lines of above code to understand.']};
chrv000(6) = {['']}
chrv000(7) = {['']}
chrv000(8) = {['So, enjoy creating your own required functions.']};
chrv000(9) = {['']}
chrv000(10) = {['']}
chrv000(11) = {['For more help e-mail me to ID gadisureshkumar@gmail.com']}
msgbox(chrv000,'Update Detils');

% --- Executes on button press in pushbutton22.
function pushbutton22_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton22 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = get(handles.edit10,'string');
chrvv000 = str2double(chrv000);
set(handles.listbox3,'value',chrvv000);
gskmadespt('listbox3_Callback',hObject, eventdata, handles)


% --- Executes on button press in pushbutton23.
function pushbutton23_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton23 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = get(handles.edit10,'string');
chrvv000 = str2double(chrv000);
set(handles.listbox3,'value',chrvv000);
gskmadespt('pushbutton10_Callback',hObject, eventdata, handles)


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

% Hints: get(hObject,'String') returns contents of edit10 as text
%        str2double(get(hObject,'String')) returns contents of edit10 as a double


% --- Executes during object creation, after setting all properties.
function edit10_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit10 (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 pushbutton24.
function pushbutton24_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton24 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

%a=get(handles.pushbutton12,'callback')
chrv000(1) = {['Help is presently not prepared, soon it will be published in MATLAB file exchange']};
chrv000(2) = {['']};
chrv000(3) = {['You will find all menus and functions are self explainatory']};
chrv000(4) = {['in case you need to know please e-mail me  "gadisureshkumar@gmail.com"']};
chrv000(5) = {['']};
chrv000(6) = {['It will be pleasure for me to correct the mistakes you find. Please inform any kind of mistake or improvements you looking for.']};
msgbox(chrv000,'Help');
% --- Executes on button press in pushbutton25.
function pushbutton25_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton25 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

chrv000 = questdlg([{'You are about to close this and exit the MATLAB with out saving your data.'};{'Are You Sure ???'}],'Question ?','Yes','No.','No.','Yes');
if ~isempty(chrv000)
    if chrv000 == 'Yes'
        chrv001(1) = {['Exiting MATLAB']};
        chrv001(2) = {['']};
        chrv001(3) = {['Have a nice day . . . .']};
        msgbox(chrv001,'Update Detils');
        exit;
    end
end




% --- Executes on button press in pushbutton26.
function pushbutton26_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton26 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global datva000;
figure;
intv000 = get(handles.popupmenu3,'value');
if intv000 == 1;
    plot(datva000(:,1),datva000(:,2),'.');
end    
if intv000 == 2;
    semilogx(datva000(:,1),datva000(:,2),'.');
end    
if intv000 == 3;
    semilogy(datva000(:,1),datva000(:,2),'.');
end    
if intv000 == 4;
    loglog(datva000(:,1),datva000(:,2),'.');
end    


% --- Executes on button press in pushbutton27.
function pushbutton27_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton27 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global datvb000;
figure;
intv000 = get(handles.popupmenu4,'value');
if intv000 == 1;
    plot(datvb000(:,1),datvb000(:,2),'.');
end    
if intv000 == 2;
    semilogx(datvb000(:,1),datvb000(:,2),'.');
end    
if intv000 == 3;
    semilogy(datvb000(:,1),datvb000(:,2),'.');
end    
if intv000 == 4;
    loglog(datvb000(:,1),datvb000(:,2),'.');
end    


% --- Executes on button press in pushbutton28.
function pushbutton28_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton28 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
chrv000 = get(handles.listbox2,'string');
intv000 = get(handles.listbox2,'value');
if ~isempty(chrv000);
    if intv000>99;
        intvs000 = num2str(intv000);
    else;
        if intv000>9;
            intvs000 = strcat('0',num2str(intv000));
        else;
            intvs000 = strcat('00',num2str(intv000));
        end;
    end;
    chrv001 = strcat('global datvc',intvs000,';');
    eval(chrv001);
    figure;
    intv000 = get(handles.popupmenu2,'value');
    if intv000 == 1;
        chrv001 = strcat('plot(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2),',char(39'),'.',char(39'),');');
        eval(chrv001);
    end    
    if intv000 == 2;
        chrv001 = strcat('semilogx(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2),',char(39'),'.',char(39'),');');
        eval(chrv001);
    end    
    if intv000 == 3;
        chrv001 = strcat('semilogy(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2),',char(39'),'.',char(39'),');');
        eval(chrv001);
    end    
    if intv000 == 4;
        chrv001 = strcat('loglog(datvc',intvs000,'(:,1),datvc',intvs000,'(:,2),',char(39'),'.',char(39'),');');
        eval(chrv001);
    end
end





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

% Hints: get(hObject,'String') returns contents of edit11 as text
%        str2double(get(hObject,'String')) returns contents of edit11 as a double


% --- Executes during object creation, after setting all properties.
function edit11_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit11 (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



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

% Hints: get(hObject,'String') returns contents of edit12 as text
%        str2double(get(hObject,'String')) returns contents of edit12 as a double


% --- Executes during object creation, after setting all properties.
function edit12_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit12 (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



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

% Hints: get(hObject,'String') returns contents of edit13 as text
%        str2double(get(hObject,'String')) returns contents of edit13 as a double


% --- Executes during object creation, after setting all properties.
function edit13_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit13 (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



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

% Hints: get(hObject,'String') returns contents of edit14 as text
%        str2double(get(hObject,'String')) returns contents of edit14 as a double


% --- Executes during object creation, after setting all properties.
function edit14_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit14 (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 checkbox1.
function checkbox1_Callback(hObject, eventdata, handles)
% hObject    handle to checkbox1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of checkbox1


Contact us at files@mathworks.com