function varargout = gskmadepict(varargin)
% GSKMADEPICT M-file for gskmadepict.fig
% GSKMADEPICT, by itself, creates a new GSKMADEPICT or raises the existing
% singleton*.
%
% H = GSKMADEPICT returns the handle to a new GSKMADEPICT or the handle to
% the existing singleton*.
%
% GSKMADEPICT('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in GSKMADEPICT.M with the given input arguments.
%
% GSKMADEPICT('Property','Value',...) creates a new GSKMADEPICT or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before gskmadepict_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to gskmadepict_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 gskmadepict
% Last Modified by GUIDE v2.5 11-Nov-2007 09:52:53
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @gskmadepict_OpeningFcn, ...
'gui_OutputFcn', @gskmadepict_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 gskmadepict is made visible.
function gskmadepict_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 gskmadepict (see VARARGIN)
% Choose default command line output for gskmadepict
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes gskmadepict wait for user response (see UIRESUME)
% uiwait(handles.figure1);
%load samples
clc;
clear global
global datv001 datv002 datv003 datva000 datvb000;
datv001(1:1001,1)=-10:.02:10;
datv001(1:1001,2)=sin(datv001(1:1001,1));
datv002(1:1001,1)=-10:.02:10;
datv002(1:1001,2)=0;
datv002(501,2)=1;
datv003(1:1001,1)=-10:.02:10;
datv003(1:500,2)=-1;
datv003(501:1001,2)=1;
datva000 = datv001;
datvb000 = datv002;
% --- Outputs from this function are returned to the command line.
function varargout = gskmadepict_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
% --- 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
% --- 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)
chrv002 = get(handles.edit4,'string');
chrvv002 = str2num(chrv002);
chrv003 = get(handles.edit5,'string');
chrvv003 = str2num(chrv003);
chrv004 = get(handles.edit7,'string');
chrvv004 = str2num(chrv004);
chrv005 = get(handles.edit8,'string');
chrvv005 = str2num(chrv005);
chrv006 = get(handles.popupmenu1,'string');
chrvv006 = get(handles.popupmenu1,'value');
chrv006 =chrv006(chrvv006);
chrv007 = get(handles.popupmenu2,'string');
chrvv007 = get(handles.popupmenu2,'value');
chrv007 =chrv007(chrvv007);
intv010 = length(get(handles.listbox1,'string'))+1;
%**************************conditions for proceeding**************
logv000 = char(chrv006) == 'Inverse logarithmic scale...';
logv001 = char(chrv007) == 'Inverse logarithmic scale...';
if ~(((chrvv002>=chrvv003) | (chrvv004<=chrvv005)) | ((logv000(9)) & ((chrvv002<=0) | (chrvv003<=0))) | ((logv001(9)) & ((chrvv004<=0) | (chrvv005<=0))));
[chrv000,chrv001]=uigetfile('*.bmp','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);
eqn001 = strcat(intvs010,'(1:intv000(2),1:2)=0;');;
eval(eqn001);
if char(chrv006) == 'Linear Scale................';
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 Scale................';
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) == 'logarithmic scale...........';
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) == 'logarithmic scale...........';
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) == 'Inverse logarithmic scale...';
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) == 'Inverse logarithmic scale...';
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));
chrv008 = (['global',blanks(1),intvs010,';']);
eval(chrv008);
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 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)
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>3
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,';');
%msgbox(num2str(datv001));
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',1);
else;
msgbox('You are not allowed to remove sample data','Information');
end;
% --- 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)
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;
intvs000 = strcat('datv',intvs000);
chrv000 = (['global',blanks(1),intvs000,';']);
eval(chrv000);
intv001 = length(eval(intvs000));
figure;
intv002 = get(handles.popupmenu4,'value');
if intv002 == 1;
chrv000 = strcat('plot(',intvs000,'(:,1),',intvs000,'(:,2));')';
eval(chrv000);
end
if intv002 == 2;
chrv000 = strcat('semilogx(',intvs000,'(:,1),',intvs000,'(:,2));')';
eval(chrv000);
end
if intv002 == 3;
chrv000 = strcat('semilogy(',intvs000,'(:,1),',intvs000,'(:,2));')';
eval(chrv000)
end
if intv002 == 4;
chrv000 = strcat('loglog(',intvs000,'(:,1),',intvs000,'(:,2));')';
eval(chrv000);
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
% --- 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
% --- 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
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 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
% --- 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
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
% --- 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 = get(handles.listbox1,'value');
chrv000 = char(chrv000(intv000))
set(handles.edit13,'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 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)
% --- 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');
chrv000 = char(chrv000(intv000))
set(handles.edit16,'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 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)
function edit4_Callback(hObject, eventdata, handles)
% hObject handle to edit4 (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 edit4 as text
% str2double(get(hObject,'String')) returns contents of edit4 as a double
% --- Executes during object creation, after setting all properties.
function edit4_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit4 (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
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 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)
% --- 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)
set(handles.edit27,'string','New Name');
set(handles.edit4,'string','0.100');
set(handles.edit5,'string','1.000');
set(handles.edit7,'string','1.000');
set(handles.edit8,'string','0.100');
set(handles.edit29,'string','1.000');
set(handles.popupmenu1,'value',1);
set(handles.popupmenu2,'value',1);
set(handles.popupmenu4,'value',1);
set(handles.popupmenu5,'value',1);
set(handles.popupmenu6,'value',1);
set(handles.popupmenu7,'value',1);
% --- 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)
% --- 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)
% --- 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)
clear global datvc001;
global datva000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
intv000 = max(datva000(:,1));
intv001 = min(datva000(:,1));
intv002 = length(datva000);
intv008 = intv000;
for intv004 = 1:(intv002-1);
intv005 = datva000(intv004,1);
intv006 = datva000((intv004+1),1);
intv007 = intv006 - intv005;
if intv008 > intv007;
intv008 = intv007;
end;
end;
intv011 = intv001:intv008:(intv000+intv008);
intv010(:,1) = intv011;
intv010(:,2)= ppval(strv000,intv010(:,1));
datvc001(:,1) = intv010(:,1);
datvc001(length(intv010),:)=[];
datvc001(:,2) = (diff(intv010(:,2))) ./ intv008;
set(handles.listbox4,'string','diff(A)');
set(handles.listbox4,'value',1);
% --- 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)
clear global datvc001;
global datva000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
intv000 = max(datva000(:,1));
intv001 = min(datva000(:,1));
intv002 = length(datva000);
intv008 = intv000;
for intv004 = 1:(intv002-1);
intv005 = datva000(intv004,1);
intv006 = datva000((intv004+1),1);
intv007 = intv006 - intv005;
if intv008 > intv007;
intv008 = intv007;
end;
end;
intv011 = intv001:intv008:(intv000+intv008);
intv010(:,1) = intv011;
intv010(:,2)= ppval(strv000,intv010(:,1));
datvc001(:,1) = intv010(:,1);
intv000 = length(intv010);
for intv001 = 1:intv000;
if intv001 == 1
datvc001(intv001,2) = intv010(intv001,2 );
else
datvc001(intv001,2) = (datvc001(intv001-1,2))+(intv010(intv001,2)) .* intv008;
end
end
set(handles.listbox4,'string','Int(A)');
set(handles.listbox4,'value',1);
% --- 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)
clear global datvc001;
global datva000 datvc001;
datvc001(:,1) = datva000(:,1);
datvc001(:,2) = abs(datva000(:,2));
set(handles.listbox4,'string','ABS (A)');
set(handles.listbox4,'value',1);
% --- 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)
% --- 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)
clear global datvc001;
global datva000 datvb000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
strv001 = interp1(datvb000(:,1),datvb000(:,2),'cubic','pp');
intv000 = max(max(datva000(:,1)),max(datvb000(:,1)));
intv001 = min(min(datva000(:,1)),min(datvb000(:,1)));
intv002 = length(datva000);
intv003 = length(datvb000);
intv008 = intv000;
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 = intv000;
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 = min(intv008,intv009);
intv011 = intv001:intv010:(intv000+intv010);
datvc001(:,1) = intv011;
datvc001(:,2)= (ppval(strv000,datvc001(:,1)) ./ ppval(strv001,datvc001(:,1)));
set(handles.listbox4,'string','A/B');
set(handles.listbox4,'value',1);
% --- 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)
clear global datvc001;
global datva000 datvb000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
strv001 = interp1(datvb000(:,1),datvb000(:,2),'cubic','pp');
intv000 = max(max(datva000(:,1)),max(datvb000(:,1)));
intv001 = min(min(datva000(:,1)),min(datvb000(:,1)));
intv002 = length(datva000);
intv003 = length(datvb000);
intv008 = intv000;
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 = intv000;
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 = min(intv008,intv009);
intv011 = intv001:intv010:(intv000+intv010);
datvc001(:,1) = intv011;
intv012 = conv(ppval(strv000,datvc001(:,1)),ppval(strv001,datvc001(:,1)));
intv013 = length(intv012);
intv014 = length(datvc001);
if intv013 > intv014;
for intv001 = intv014+1:intv013;
datvc001(intv001,1) = datvc001(intv001-1,1) + (intv010);
end;
end;
datvc001(:,2) = intv012;
set(handles.listbox4,'string','Convolution of A,B');
set(handles.listbox4,'value',1);
% --- 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)
clear global datvc001;
global datva000 datvb000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
strv001 = interp1(datvb000(:,1),datvb000(:,2),'cubic','pp');
intv000 = max(max(datva000(:,1)),max(datvb000(:,1)));
intv001 = min(min(datva000(:,1)),min(datvb000(:,1)));
intv002 = length(datva000);
intv003 = length(datvb000);
intv008 = intv000;
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 = intv000;
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 = min(intv008,intv009);
intv011 = intv001:intv010:(intv000+intv010);
datvc001(:,1) = intv011;
intv012 = xcorr(ppval(strv000,datvc001(:,1)),ppval(strv001,datvc001(:,1)));
intv013 = length(intv012);
intv014 = length(datvc001);
if intv013 > intv014
for intv001 = intv014+1:intv013;
datvc001(intv001,1) = datvc001(intv001-1,1) + (intv010);
end
end
datvc001(:,2) = intv012;
set(handles.listbox4,'string','X correlation of A,B');
set(handles.listbox4,'value',1);
% --- 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)
clear global datvc001;
global datva000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
intv000 = max(datva000(:,1));
intv001 = min(datva000(:,1));
intv002 = length(datva000);
intv008 = intv000;
for intv004 = 1:(intv002-1);
intv005 = datva000(intv004,1);
intv006 = datva000((intv004+1),1);
intv007 = intv006 - intv005;
if intv008 > intv007;
intv008 = intv007;
end;
end;
intv010 = intv008;
intv011 = intv001:intv010:(intv000+intv010);
datvc001(:,1) = intv011;
intv012 = xcorr(ppval(strv000,datvc001(:,1)),ppval(strv000,datvc001(:,1)));
intv013 = length(intv012);
intv014 = length(datvc001);
if intv013 > intv014
for intv001 = intv014+1:intv013;
datvc001(intv001,1) = datvc001(intv001-1,1) + (intv010);
end
end
datvc001(:,2) = intv012;
set(handles.listbox4,'string','Auto correlation of A');
set(handles.listbox4,'value',1);
% --- 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)
% --- 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)
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
function edit15_Callback(hObject, eventdata, handles)
% hObject handle to edit15 (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 edit15 as text
% str2double(get(hObject,'String')) returns contents of edit15 as a double
% --- Executes during object creation, after setting all properties.
function edit15_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit15 (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 edit16_Callback(hObject, eventdata, handles)
% hObject handle to edit16 (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 edit16 as text
% str2double(get(hObject,'String')) returns contents of edit16 as a double
% --- Executes during object creation, after setting all properties.
function edit16_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit16 (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 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)
[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));
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)
[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 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)
[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 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 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)
intv000 = (get(handles.listbox4,'value'));
chrv000 = get(handles.listbox4,'string');
if ~(isempty(get(handles.listbox4,'string')))
if intv000>99;
intvs000 = num2str(intv000);
else;
if intv000>9;
intvs000 = strcat('0',num2str(intv000));
else;
intvs000 = strcat('00',num2str(intv000));
end;
end;
intvs000 = strcat('datvc',intvs000);
chrv000 = (['global',blanks(1),intvs000,';']);
eval(chrv000);
intv001 = length(eval(intvs000));
figure;
intv002 = get(handles.popupmenu7,'value');
if intv002 == 1;
chrv000 = strcat('plot(',intvs000,'(:,1),',intvs000,'(:,2));')';
eval(chrv000);
end;
if intv002 == 2;
chrv000 = strcat('semilogx(',intvs000,'(:,1),',intvs000,'(:,2));')';
eval(chrv000);
end;
if intv002 == 3;
chrv000 = strcat('semilogy(',intvs000,'(:,1),',intvs000,'(:,2));')';
eval(chrv000);
end;
if intv002 == 4;
chrv000 = strcat('loglog(',intvs000,'(:,1),',intvs000,'(:,2));')';
eval(chrv000);
end;
else;
msgbox('Empty Output Box / Select from output box','Error');
end;
% --- Executes on button press in pushbutton29.
function pushbutton29_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton29 (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.listbox4,'value');
chrv000 = get(handles.listbox4,'string');
if ~(isempty(chrv000));
if 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);
else;
msgbox('Empty Output Box / Select from output box','Error');
end;
% --- Executes on button press in pushbutton30.
function pushbutton30_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton30 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton31.
function pushbutton31_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton31 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
msgbox([{'For help in understanding this programme or for help in modifying code, email to following email ID'};{''};{'gadisureshkumar@gmail.com'};{''};{''};{'You are allowed to add more buttons in space provided'};{''};{'Avoid high resolution graphs as it may slow down process also may not able to create picture because of less memory.'};{''};{'If unexpected (check input data brfore reporting bug) bug occur, close MATLAB and start again. Feel free to email your error in case it continuous'}],'Thank You');
function edit19_Callback(hObject, eventdata, handles)
% hObject handle to edit19 (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 edit19 as text
% str2double(get(hObject,'String')) returns contents of edit19 as a double
% --- Executes during object creation, after setting all properties.
function edit19_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit19 (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 edit20_Callback(hObject, eventdata, handles)
% hObject handle to edit20 (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 edit20 as text
% str2double(get(hObject,'String')) returns contents of edit20 as a double
% --- Executes during object creation, after setting all properties.
function edit20_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit20 (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 pushbutton32.
function pushbutton32_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton32 (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.popupmenu5,'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 pushbutton33.
function pushbutton33_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton33 (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.popupmenu5,'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
function edit21_Callback(hObject, eventdata, handles)
% hObject handle to edit21 (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 edit21 as text
% str2double(get(hObject,'String')) returns contents of edit21 as a double
% --- Executes during object creation, after setting all properties.
function edit21_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit21 (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 edit22_Callback(hObject, eventdata, handles)
% hObject handle to edit22 (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 edit22 as text
% str2double(get(hObject,'String')) returns contents of edit22 as a double
% --- Executes during object creation, after setting all properties.
function edit22_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit22 (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 edit23_Callback(hObject, eventdata, handles)
% hObject handle to edit23 (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 edit23 as text
% str2double(get(hObject,'String')) returns contents of edit23 as a double
% --- Executes during object creation, after setting all properties.
function edit23_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit23 (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 edit24_Callback(hObject, eventdata, handles)
% hObject handle to edit24 (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 edit24 as text
% str2double(get(hObject,'String')) returns contents of edit24 as a double
% --- Executes during object creation, after setting all properties.
function edit24_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit24 (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 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
% --- 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 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
% --- 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 pushbutton34.
function pushbutton34_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton34 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
chrv000 = get(handles.edit25,'string');
chrvv000 = str2num(chrv000);
datvc001(:,1) = datva000(:,1)-chrvv000;
datvc001(:,2) = datva000(:,2);
set(handles.listbox4,'string','Shifted Left A');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton35.
function pushbutton35_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton35 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
chrv000 = get(handles.edit25,'string');
chrvv000 = str2num(chrv000);
datvc001(:,1) = datva000(:,1)+chrvv000;
datvc001(:,2) = datva000(:,2);
set(handles.listbox4,'string','Shifted Right A');
set(handles.listbox4,'value',1);
% --- Executes on button press in radiobutton1.
function radiobutton1_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton1 (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 radiobutton1
% --- Executes on button press in radiobutton2.
function radiobutton2_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton2 (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 radiobutton2
% --- Executes on button press in radiobutton3.
function radiobutton3_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton3 (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 radiobutton3
% --- Executes on button press in radiobutton4.
function radiobutton4_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton4 (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 radiobutton4
% --- Executes on button press in radiobutton8.
function radiobutton8_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton8 (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 radiobutton8
% --- Executes on button press in radiobutton9.
function radiobutton9_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton9 (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 radiobutton9
% --- Executes on button press in radiobutton10.
function radiobutton10_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton10 (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 radiobutton10
% --- Executes on button press in radiobutton11.
function radiobutton11_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton11 (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 radiobutton11
% --- 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 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 selection change in popupmenu7.
function popupmenu7_Callback(hObject, eventdata, handles)
% hObject handle to popupmenu7 (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 popupmenu7 contents as cell array
% contents{get(hObject,'Value')} returns selected item from popupmenu7
% --- Executes during object creation, after setting all properties.
function popupmenu7_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu7 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit25_Callback(hObject, eventdata, handles)
% hObject handle to edit25 (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 edit25 as text
% str2double(get(hObject,'String')) returns contents of edit25 as a double
% --- Executes during object creation, after setting all properties.
function edit25_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit25 (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 pushbutton36.
function pushbutton36_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton36 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
chrv000 = get(handles.edit26,'string');
chrvv000 = str2num(chrv000);
datvc001(:,1) = datva000(:,1);
datvc001(:,2) = datva000(:,2)-chrvv000;
set(handles.listbox4,'string','Shifted Down A');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton37.
function pushbutton37_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton37 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
chrv000 = get(handles.edit26,'string');
chrvv000 = str2num(chrv000);
datvc001(:,1) = datva000(:,1);
datvc001(:,2) = datva000(:,2)+chrvv000;
set(handles.listbox4,'string','Shifted Up A');
set(handles.listbox4,'value',1);
function edit26_Callback(hObject, eventdata, handles)
% hObject handle to edit26 (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 edit26 as text
% str2double(get(hObject,'String')) returns contents of edit26 as a double
% --- Executes during object creation, after setting all properties.
function edit26_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit26 (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 pushbutton38.
function pushbutton38_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton38 (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<4
msgbox('You are not allowed to rename Sample Data','Information');
else
chrv001 = get(handles.edit27,'string');
chrv000(intv000) = {chrv001};
set(handles.listbox1,'string',chrv000);
end
function edit27_Callback(hObject, eventdata, handles)
% hObject handle to edit27 (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 edit27 as text
% str2double(get(hObject,'String')) returns contents of edit27 as a double
% --- Executes during object creation, after setting all properties.
function edit27_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit27 (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 edit28_Callback(hObject, eventdata, handles)
% hObject handle to edit28 (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 edit28 as text
% str2double(get(hObject,'String')) returns contents of edit28 as a double
% --- Executes during object creation, after setting all properties.
function edit28_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit28 (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 pushbutton40.
function pushbutton40_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton40 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
datvc001(:,1) = datva000(:,1);
datvc001(:,2) = -1.*(datva000(:,2));
set(handles.listbox4,'string','Negative in A');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton41.
function pushbutton41_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton41 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
intv000(:,1) = -1.*(datva000(:,1));
intv000(:,2) = datva000(:,2);
intv001 = length(intv000);
datvc001 = intv000 .* (0);
for intv002 = 1:intv001;
datvc001(intv002,1) = intv000(intv001+1-intv002,1);
datvc001(intv002,2) = intv000(intv001+1-intv002,2);
end
set(handles.listbox4,'string','Negative in t');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton42.
function pushbutton42_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton42 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
intv000 = heaviside(datva000(:,2));
intv000 = intv000 .* datva000(:,2);
datvc001(:,1) = datva000(:,1);
datvc001(:,2) = intv000;
set(handles.listbox4,'string','Positive(A)');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton43.
function pushbutton43_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton43 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
intv000 = heaviside(-1 .* datva000(:,2));
intv000 = intv000 .* datva000(:,2);
datvc001(:,1) = datva000(:,1);
datvc001(:,2) = intv000;
set(handles.listbox4,'string','Negative(A)');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton44.
function pushbutton44_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton44 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
datvc001(:,1) = (datva000(:,1));
datvc001(:,2) = (datva000(:,2)) .* (datva000(:,2));
set(handles.listbox4,'string','Square(A)');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton45.
function pushbutton45_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton45 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
datvc001(:,1) = (datva000(:,1));
datvc001(:,2) = 1 ./ (datva000(:,2));
set(handles.listbox4,'string','Inverse(A)');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton46.
function pushbutton46_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton46 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001 datvc002 datvc003 datvc004;
global datva000 datvc001 datvc002 datvc003 datvc004;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
intv000 = max(datva000(:,1));
intv001 = min(datva000(:,1));
intv002 = length(datva000);
intv008 = intv000;
for intv004 = 1:(intv002-1);
intv005 = datva000(intv004,1);
intv006 = datva000((intv004+1),1);
intv007 = intv006 - intv005;
if intv008 > intv007;
intv008 = intv007;
end;
end;
intv011 = intv001:intv008:(intv000+intv008);
intv010(:,1) = intv011;
intv010(:,2)= ppval(strv000,intv010(:,1));
datvc001(:,1) = intv010(:,1);
datvc002(:,1) = intv010(:,1);
datvc003(:,1) = intv010(:,1);
datvc004(:,1) = intv010(:,1);
intv000 = fft(intv010(:,2));
datvc001(:,2) = abs(intv000);
datvc002(:,2) = angle(intv000);
datvc003(:,2) = real(intv000);
datvc004(:,2) = imag(intv000);
chrv000(1) = {'Magnitude of DFT'};
chrv000(2) = {'Angle of DFT'};
chrv000(3) = {'Real part of DFT'};
chrv000(4) = {'Imaginary part of DFT'};
set(handles.listbox4,'string',cellstr(chrv000));
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton48.
function pushbutton48_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton48 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvb000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
strv001 = interp1(datvb000(:,1),datvb000(:,2),'cubic','pp');
intv000 = max(max(datva000(:,1)),max(datvb000(:,1)));
intv001 = min(min(datva000(:,1)),min(datvb000(:,1)));
intv002 = length(datva000);
intv003 = length(datvb000);
intv008 = intv000;
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 = intv000;
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 = min(intv008,intv009);
intv011 = intv001:intv010:(intv000+intv010);
datvc001(:,1) = intv011;
datvc001(:,2)= (ppval(strv000,datvc001(:,1)) + ppval(strv001,datvc001(:,1)));
set(handles.listbox4,'string','A+B');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton49.
function pushbutton49_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton49 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvb000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
strv001 = interp1(datvb000(:,1),datvb000(:,2),'cubic','pp');
intv000 = max(max(datva000(:,1)),max(datvb000(:,1)));
intv001 = min(min(datva000(:,1)),min(datvb000(:,1)));
intv002 = length(datva000);
intv003 = length(datvb000);
intv008 = intv000;
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 = intv000;
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 = min(intv008,intv009);
intv011 = intv001:intv010:(intv000+intv010);
datvc001(:,1) = intv011;
datvc001(:,2)= (ppval(strv000,datvc001(:,1)) - ppval(strv001,datvc001(:,1)));
set(handles.listbox4,'string','A-B');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton50.
function pushbutton50_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton50 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvb000 datvc001;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
strv001 = interp1(datvb000(:,1),datvb000(:,2),'cubic','pp');
intv000 = max(max(datva000(:,1)),max(datvb000(:,1)));
intv001 = min(min(datva000(:,1)),min(datvb000(:,1)));
intv002 = length(datva000);
intv003 = length(datvb000);
intv008 = intv000;
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 = intv000;
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 = min(intv008,intv009);
intv011 = intv001:intv010:(intv000+intv010);
datvc001(:,1) = intv011;
datvc001(:,2)= (ppval(strv000,datvc001(:,1)) .* ppval(strv001,datvc001(:,1)));
set(handles.listbox4,'string','AxB');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton51.
function pushbutton51_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton51 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
chrv000 = get(handles.edit29,'string');
chrvv000 = str2double(chrv000);
datvc001(:,1) = datva000(:,1);
datvc001(:,2) = datva000(:,2).* chrvv000;
set(handles.listbox4,'string','Scaled to A');
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton52.
function pushbutton52_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton52 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001;
global datva000 datvc001;
chrv000 = get(handles.edit29,'string');
chrvv000 = str2num(chrv000);
datvc001(:,1) = datva000(:,1) .* chrvv000;
datvc001(:,2) = datva000(:,2);
set(handles.listbox4,'string','Scaled to t');
set(handles.listbox4,'value',1);
function edit29_Callback(hObject, eventdata, handles)
% hObject handle to edit29 (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 edit29 as text
% str2double(get(hObject,'String')) returns contents of edit29 as a double
% --- Executes during object creation, after setting all properties.
function edit29_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit29 (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 pushbutton54.
function pushbutton54_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton54 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001 datvc002 datvc003 datvc004;
global datva000 datvb000 datvc001 datvc002 datvc003 datvc004;
strv000 = interp1(datva000(:,1),datva000(:,2),'cubic','pp');
strv001 = interp1(datvb000(:,1),datvb000(:,2),'cubic','pp');
intv000 = max(max(datva000(:,1)),max(datvb000(:,1)));
intv001 = min(min(datva000(:,1)),min(datvb000(:,1)));
intv002 = length(datva000);
intv003 = length(datvb000);
intv008 = intv000;
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 = intv000;
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 = min(intv008,intv009);
intv011 = intv001:intv010:(intv000+intv010);
datvc001(:,1) = intv011;
datvc002(:,1) = intv011;
datvc003(:,1) = intv011;
datvc004(:,1) = intv011;
intv012 = complex(ppval(strv000,datvc001(:,1)) , ppval(strv001,datvc001(:,1)));
intv000 = ifft(intv012);
datvc001(:,2) = abs(intv000);
datvc002(:,2) = angle(intv000);
datvc003(:,2) = real(intv000);
datvc004(:,2) = imag(intv000);
chrv000(1) = {'Magnitude of IDFT'};
chrv000(2) = {'Angle of IDFT'};
chrv000(3) = {'Real part of IDFT'};
chrv000(4) = {'Imaginary part of IDFT'};
set(handles.listbox4,'string',cellstr(chrv000));
set(handles.listbox4,'value',1);
% --- Executes on button press in pushbutton55.
function pushbutton55_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton55 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
clear global datvc001 datvc002;
global datva000 datvc001 datvc002;
datvc001(:,1) = datva000(:,1);
datvc002(:,1) = datva000(:,1);
intv000 = sqrt(datva000(:,2));
datvc001(:,2) = real(intv000);
datvc002(:,2) = imag(intv000);
chrv000 = [{'Real part of Sqrt(A)'};{'Imaginary Part of Sqrt(A)'}];
set(handles.listbox4,'string',cellstr(chrv000));
set(handles.listbox4,'value',1);