You are on page 1of 17

function varargout = proyecto(varargin)

% PROYECTO M-file for proyecto.fig


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

% Last Modified by GUIDE v2.5 15-Dec-2015 04:54:17

% Begin initialization code - DO NOT EDIT


gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @proyecto_OpeningFcn, ...
'gui_OutputFcn', @proyecto_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 proyecto is made visible.


function proyecto_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 proyecto (see VARARGIN)

% Choose default command line output for proyecto


handles.output = hObject;

% Update handles structure


guidata(hObject, handles);

handles.a=1 ;handles.a1=1;
handles.f1=4; handles.f2=4; handles.f3=4; handles.f4=4; handles.f5=4;
guidata(hObject, handles);
num_elem=cell(1,2);
num_elem(:,:)={''};
set(handles.uitable6,'Data',num_elem)
set(handles.uitable6,'ColumnEditable',true(1,2))
set(handles.uitable6,'visible','off')
set(handles.uitable10,'visible','off')
set(handles.pushbutton26,'visible','off')
jaja=cell(3,1);
jaja(:,:)={''}
set(handles.uitable8,'Data',jaja)
set(handles.uitable10,'Data',jaja)
% UIWAIT makes proyecto wait for user response (see UIRESUME)
% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.
function varargout = proyecto_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 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 = cellstr(get(hObject,'String')) returns popupmenu1


contents as cell array
% contents{get(hObject,'Value')} returns selected item from
popupmenu1

a=get(handles.popupmenu1,'value');
a1=a
if a==3
a=2;
set(handles.uitable6,'visible','on');
set(handles.uitable10,'visible','on')
set(handles.uitable8,'visible','off')
else
a=1;
set(handles.uitable6,'visible','off');
set(handles.uitable10,'visible','off')
set(handles.uitable8,'visible','on')
end
handles.a=a;
handles.a1=a1;
guidata(hObject,handles);

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

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
L=str2double(get(handles.edit1,'string'))
handles.L=L
guidata(hObject,handles)

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

L=str2double(get(handles.edit1,'string'))
Ap=(str2num(str2mat(get(handles.uitable6,'data'))))'
a=handles.a
a1=handles.a1

Pbruto=get(handles.uitable1,'data')
P=str2mat(Pbruto(:,1))
Px=str2mat(Pbruto(:,2))
P=(str2num(P))'
Px=(str2num(Px))'
if length(P)~=length(Px)
P=[]
Px=[]
end

Mbruto=get(handles.uitable2,'data')
M=str2mat(Mbruto(:,1))
Mx=str2mat(Mbruto(:,2))
M=(str2num(M))'
Mx=(str2num(Mx))'
if length(M)~=length(Mx)
M=[]
Mx=[]
end

Wbruto=get(handles.uitable3,'data')
W=str2mat(Wbruto(:,1))
Wx1=str2mat(Wbruto(:,2))
Wx2=str2mat(Wbruto(:,3))
W=(str2num(W))'
Wx1=str2num(Wx1)
Wx2=str2num(Wx2)
if length(W)~=length(Wx1) && length(W)~=length(Wx1)
W=[]
Wx=[]
end
Wx=[Wx1 Wx2]

FAbruto=get(handles.uitable4,'data')
FA=str2mat(FAbruto(:,1))
FAx=str2mat(FAbruto(:,2))
FA=(str2num(FA))'
FAx=(str2num(FAx))'
if length(FA)~=length(FAx)
FA=[]
FAx=[]
end

Wexbruto=get(handles.uitable5,'data')
Wexxy1=str2num(str2mat(Wexbruto(:,1)))
Wexxy2=str2num(str2mat(Wexbruto(:,2)))
%el Wex es especial
syms x
Wex=char(str2mat(Wexbruto(:,3)))
aux=cell(1,2)
aux(1,:)={'','0'}
aux=char(str2mat(aux))
j=1
[m,n]=size(Wex)
Wex1=Wex
if n~=0
for i=1:handles.f5
if Wex(i)==aux(1)
Wex1=[Wex1(1:j-1,:); Wex1(j+1:length(Wex1),:)]
else
j=j+1
end
end
Wex=(Wex1)'
else
Wex=[] %no estoy SEGUROOOOOOOOOOOOOOOOOOOO
end

Wexx1=str2num(str2mat(Wexbruto(:,4)))
Wexx2=str2num(str2mat(Wexbruto(:,5)))
if length(Wexxy1)~=length(Wexxy2) && length(Wexxy2)~=length(Wex) &&
length(Wex)~=length(Wexx1) length(Wexx1)~=length(Wexx2)
Wex=[]
Wexx=[]
Wexxy=[]
else
Wexx=[Wexx1 Wexx2]
Wexxy=[Wexxy1 Wexxy2]
end
Wx=[Wx1 Wx2]

%EL PROGRAMA
for i=1:length(Wex)
Wex(i)=subs(Wex(i),x-Wexxy(i,1))+Wexxy(i,2);
end

%fuerzas en x
c0=0
for i=1:length(FA)
c0=c0+FA(i)
end
%fuerzas en y
c1=0;
for i=1:length(P)
c1=c1+P(i)
end
for i=1:length(W)
c1=c1+abs(Wx(i,1)-Wx(i,2))*W(i);
end
for i=1:length(Wex)
c1=c1+int(Wex(i),Wexx(i,1),Wexx(i,2)); %intergracion numerica?
end

%momentos en punto x=0


c2=0;
for i=1:length(P)
c2=c2-P(i)*Px(i);
end
for i=1:length(W)
c2=c2-(Wx(i,2)-Wx(i,1))*W(i)*(Wx(i,2)+Wx(i,1))/2;
end
for i=1:length(Wex)
c2=c2-int(x*Wex(i),Wexx(i,1),Wexx(i,2)) ; %intergracion numerica?
end
for i=1:length(M)
c2=c2+M(i);
end
%resolcin de esistemas de ecuaciones
if a==2
mat=[1 1 0 -c1;-Ap(1) -Ap(2) 0 -c2;0 0 1 -c0]
zgaussjordan;
Ay=mat(1,4) %respuesta
By=mat(2,4) %respuesta
Ax=mat(3,4) %respuesta
P=[P Ay By];
Px=[Px Ap];
if length(Wex)==0
N={Ay;Ax;By} %simplemente apoyada
N1={-Ay;-Ax;-By} %modificado*************
else
N={char(Ay);char(Ax);char(By)}
N1={char(Ay);char(Ax);char(By)} %modificado********
end
set(handles.uitable10,'Data',N1)
%Ax Ay Bx By Bm
end
if a==1
if a1==1
mat=[1 0 0 -c1;-L 1 0 -c2;0 0 1 -c0];
zgaussjordan;
Ax=mat(3,4)
Ay=mat(1,4) %respuesta
MA=mat(2,4) %respuesta
P=[P Ay];
Px=[Px L];
M=[M MA];
Mx=[Mx L];
if length(Wex)==0
N={Ay;Ax;MA} %empotrado derecho
N2={-Ay;-Ax;-MA} %modificad0********************
else
N={char(Ay);char(Ax);char(MA)}
N2={char(Ay);char(Ax);char(MA)} %modificado**********
end
set(handles.uitable8,'Data',N2) %modificado**********
end
if a1==2
mat=[1 0 0 -c1;0 1 0 -c2;0 0 1 -c0];
zgaussjordan;
Ax=mat(3,4)
Ay=mat(1,4) %respuesta
MA=mat(2,4) %respuesta
P=[P Ay];
Px=[Px 0];
M=[M MA];
Mx=[Mx 0];
if length(Wex)==0
N={Ay;Ax;MA} %empotrado izquierda
N3={-Ay;-Ax;-MA} %modificado*********************
else
N={char(Ay);char(Ax);char(MA)}
N3={char(Ay);char(Ax);char(MA)} %modificado*********
end
set(handles.uitable8,'Data',N3)
end
end
%SEGUNDA PARTE: Diagrama de fuerza cortante y momento flector
ecfc=ecuacionesfuerzacortante(Px,P,Wx,W,Wex,Wexx) %respuesta
ecmf=ecuacionesmomentoflector(Px,P,Mx,M,Wx,W,Wex,Wexx) %respuesta
[m,n]=size(ecfc);
M1=cell(m,2);

%expandir las funciones (simplificar)**********************


ecfc=expand(ecfc)
ecmf=expand(ecmf)

%completar intervalos faltantes**************************


if ecfc(m,2)-L ~= 0
m=m+1;
ecfc(m,:)=[0 L]
ecmf(m,:)=[0 L]
end

%sacar las funciones de la matriz general***************

for i=1:m
M1(i,1)={char(ecfc(i,1))};
MM1(i)=ecfc(i,1);
M1(i,2)={char(ecfc(i,2))};
XX1(i)=(ecfc(i,2));
end

figure(1) %primera grafica************************


set(gcf,'Color',[1 1 1])
clf(1) %borrar graficas

%graficar referencias de los valores (Tabulaciones)


hold on
t=1;
syms f1
for i=1:m
x=XX1(i);
f1=subs(MM1(t));
f1=double(f1);
x=double(x);
plot([x x],[0 f1],'--b','LineWidth',1)
plot([0 x],[f1 f1],'--b','LineWidth',1)
text(0,f1,int2str(f1),'Color','blue','FontSize',12)
text(x,0,int2str(x),'Color','blue','FontSize',12)
t=t+1;
end
hold off

hold on
t=1;
for i=2:m
x=XX1(i);
f1=subs(MM1(t));
f1=double(f1);
x=double(x);
plot([x x],[0 f1],'--b','LineWidth',1)
plot([0 x],[f1 f1],'--b','LineWidth',1)
text(0,f1,int2str(f1),'Color','blue','FontSize',12)
text(x,0,int2str(x),'Color','blue','FontSize',12)
t=t+1;
end
hold off

%_____________________________
%grafica de fuerza cortante

t=1;
xlabel('Distancia (x)')
ylabel('Fuerza Cortante (V)')
for i=1:m

if (t<m)
x=XX1(t):0.01:XX1(t+1);
f1=subs(MM1(i));
title('Diagrama de Fuerza Cortante','FontSize',10,'Color',[1 0 0])
hold on
plot (x,f1,'r.','LineWidth',1)
else
end
t=t+1;
end
grid
hold off
%completar lineas de salto
t=1;
for i=2:m-1
XXX1(t)=XX1(i);
t=t+1;
end

hold on
for i=1:length(XXX1)
x=XXX1(i);
fx1=subs(MM1(i));
fx2=subs(MM1(i+1));
plot([x x],[fx1 fx2],'r','LineWidth',4)
end
hold off

%completar ultimo salto


hold on
syms f1
x=XX1(m);
f1=subs(MM1(m-1));
f1=double(f1);
x=double(x);
plot([x x],[0 f1],'r','LineWidth',4)
hold off

%___________________________

[m,n]=size(ecmf);
M2=cell(m,2);

%sacar las funciones de la matriz general


for i=1:m
M2(i,1)={char(ecmf(i,1))};
MM2(i)=ecmf(i,1);
M2(i,2)={char(ecmf(i,2))};
XX2(i)=ecmf(i,2);
end

figure(2) %segunda grafica**************


set(gcf,'Color',[1 1 1])
clf(2) %borrar grafica

%graficar referencias de los valores (tabulacion)


t=1;
syms f2
for i=1:m
x=XX2(i);
f2=subs(MM2(t));
f2=double(f2);
x=double(x);
plot([x x],[0 f2],'--b','LineWidth',1)
plot([0 x],[f2 f2],'--b','LineWidth',1)
text(0,f2,int2str(f2),'Color','blue','FontSize',12)
text(x,0,int2str(x),'Color','blue','FontSize',12)

t=t+1;
end
hold off

hold on
t=1;
for i=2:m
x=XX2(i);
f2=subs(MM2(t));
f2=double(f2);
x=double(x);
plot([x x],[0 f2],'--b','LineWidth',1)
plot([0 x],[f2 f2],'--b','LineWidth',1)
text(0,f2,int2str(f2),'Color','blue','FontSize',12)
text(x,0,int2str(x),'Color','blue','FontSize',12)
t=t+1;
end
hold off

%_____________________________
%grafica de momento flector

t=1;

xlabel('Distancia (x)')
ylabel('Fuerza Cortante (V)')

for i=1:m

if (t<m)
x=XX2(t):0.01:XX2(t+1);
f2=subs(MM2(i));

title('Diagrama de Momento Flector','FontSize',10,'Color',[1 0 0])

hold on
plot (x,f2,'r.','LineWidth',1)

else
end
t=t+1;
end
grid
hold off

%completar lineas de salto


t=1;
for i=2:m-1
XXX2(t)=XX2(i);
t=t+1;
end
isnumeric(MM2)
hold on
for i=1:length(XXX2)
x=XXX2(i);
fx3=subs(MM2(i));
fx4=subs(MM2(i+1));
plot([x x],[fx3 fx4],'r','LineWidth',4)
end
hold off

hold on

%completar ultimo salto


hold on
syms f2
x=XX2(m);
f2=subs(MM2(m-1));
f2=double(f2);
x=double(x);
plot([x x],[0 f2],'r','LineWidth',4)
hold off

%________________________________

set(handles.uitable12,'Data',M1)
set(handles.uitable13,'Data',M2)

set(handles.pushbutton26,'visible','on')

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

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 mas1.


function mas1_Callback(hObject, eventdata, handles)
% hObject handle to mas1 (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.uitable1,'data')
handles.f1=handles.f1+1
guidata(hObject, handles)
B=cell(handles.f1,2)
B(1:handles.f1-1,:)=A
B(handles.f1,:)={''}
set(handles.uitable1,'Data',B)
set(handles.uitable1,'ColumnEditable',true(1,2))

% --- Executes on button press in menos1.


function menos1_Callback(hObject, eventdata, handles)
% hObject handle to menos1 (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.uitable1,'data')
handles.f1=handles.f1-1
guidata(hObject, handles)
B=cell(handles.f1,2)
B=A(1:handles.f1,:)
set(handles.uitable1,'Data',B)
set(handles.uitable1,'ColumnEditable',true(1,2))

% --- Executes on button press in mas2.


function mas2_Callback(hObject, eventdata, handles)
% hObject handle to mas2 (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.uitable2,'data')
handles.f2=handles.f2+1
guidata(hObject, handles)
B=cell(handles.f2,2)
B(1:handles.f2-1,:)=A
B(handles.f2,:)={''}
set(handles.uitable2,'Data',B)
set(handles.uitable2,'ColumnEditable',true(1,2))

% --- Executes on button press in menos2.


function menos2_Callback(hObject, eventdata, handles)
% hObject handle to menos2 (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.uitable2,'data')
handles.f2=handles.f2-1
guidata(hObject, handles)
B=cell(handles.f2,2)
B=A(1:handles.f2,:)
set(handles.uitable2,'Data',B)
set(handles.uitable2,'ColumnEditable',true(1,2))

% --- Executes on button press in mas3.


function mas3_Callback(hObject, eventdata, handles)
% hObject handle to mas3 (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.uitable3,'data')
handles.f3=handles.f3+1
guidata(hObject, handles)
B=cell(handles.f3,3)
B(1:handles.f3-1,:)=A
B(handles.f3,:)={''}
set(handles.uitable3,'Data',B)
set(handles.uitable3,'ColumnEditable',true(1,3))

% --- Executes on button press in menos3.


function menos3_Callback(hObject, eventdata, handles)
% hObject handle to menos3 (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.uitable3,'data')
handles.f3=handles.f3-1
guidata(hObject, handles)
B=cell(handles.f3,3)
B=A(handles.f3,:)
set(handles.uitable3,'Data',B)
set(handles.uitable3,'ColumnEditable',true(1,3))
% --- Executes on button press in mas4.
function mas4_Callback(hObject, eventdata, handles)
% hObject handle to mas4 (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.uitable4,'data')
handles.f4=handles.f4+1
guidata(hObject, handles)
B=cell(handles.f4,2)
B(1:handles.f4-1,:)=A
B(handles.f4,:)={''}
set(handles.uitable4,'Data',B)
set(handles.uitable4,'ColumnEditable',true(1,2))

% --- Executes on button press in menos4.


function menos4_Callback(hObject, eventdata, handles)
% hObject handle to menos4 (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.uitable4,'data')
handles.f4=handles.f4-1
guidata(hObject, handles)
B=cell(handles.f4,2)
B=A(1:handles.f4,:)
set(handles.uitable4,'Data',B)
set(handles.uitable4,'ColumnEditable',true(1,2))

% --- Executes on button press in mas5.


function mas5_Callback(hObject, eventdata, handles)
% hObject handle to mas5 (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.uitable5,'data')
handles.f5=handles.f5+1
guidata(hObject, handles)
B=cell(handles.f5,5)
B(1:handles.f5-1,:)=A
B(handles.f5,:)={''}
set(handles.uitable5,'Data',B)
set(handles.uitable5,'ColumnEditable',true(1,5))

% --- Executes on button press in menos5.


function menos5_Callback(hObject, eventdata, handles)
% hObject handle to menos5 (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.uitable5,'data')
handles.f5=handles.f5-1
guidata(hObject, handles)
B=cell(handles.f5,5)
B=A(1:handles.f5,:)
set(handles.uitable5,'Data',B)
set(handles.uitable5,'ColumnEditable',true(1,5))
% --- Executes when entered data in editable cell(s) in uitable5.
function uitable5_CellEditCallback(hObject, eventdata, handles)
% hObject handle to uitable5 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) edited
% PreviousData: previous data for the cell(s) edited
% EditData: string(s) entered by the user
% NewData: EditData or its converted form set on the Data property.
Empty if Data was not changed
% Error: error string when failed to convert EditData to appropriate
value for Data
% handles structure with handles and user data (see GUIDATA)

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

% --- Executes when selected cell(s) is changed in uitable13.


function uitable13_CellSelectionCallback(hObject, eventdata, handles)
% hObject handle to uitable13 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) currently selecteds
% handles structure with handles and user data (see GUIDATA)

% --- Executes when entered data in editable cell(s) in uitable13.


function uitable13_CellEditCallback(hObject, eventdata, handles)
% hObject handle to uitable13 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) edited
% PreviousData: previous data for the cell(s) edited
% EditData: string(s) entered by the user
% NewData: EditData or its converted form set on the Data property.
Empty if Data was not changed
% Error: error string when failed to convert EditData to appropriate
value for Data
% handles structure with handles and user data (see GUIDATA)

% --- Executes when selected cell(s) is changed in uitable12.


function uitable12_CellSelectionCallback(hObject, eventdata, handles)
% hObject handle to uitable12 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) currently selecteds
% handles structure with handles and user data (see GUIDATA)
% --- Executes when entered data in editable cell(s) in uitable1.
function uitable1_CellEditCallback(hObject, eventdata, handles)
% hObject handle to uitable1 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) edited
% PreviousData: previous data for the cell(s) edited
% EditData: string(s) entered by the user
% NewData: EditData or its converted form set on the Data property.
Empty if Data was not changed
% Error: error string when failed to convert EditData to appropriate
value for Data
% handles structure with handles and user data (see GUIDATA)

% --- Executes when entered data in editable cell(s) in uitable3.


function uitable3_CellEditCallback(hObject, eventdata, handles)
% hObject handle to uitable3 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) edited
% PreviousData: previous data for the cell(s) edited
% EditData: string(s) entered by the user
% NewData: EditData or its converted form set on the Data property.
Empty if Data was not changed
% Error: error string when failed to convert EditData to appropriate
value for Data
% handles structure with handles and user data (see GUIDATA)

% --- Executes when entered data in editable cell(s) in uitable12.


function uitable12_CellEditCallback(hObject, eventdata, handles)
% hObject handle to uitable12 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) edited
% PreviousData: previous data for the cell(s) edited
% EditData: string(s) entered by the user
% NewData: EditData or its converted form set on the Data property.
Empty if Data was not changed
% Error: error string when failed to convert EditData to appropriate
value for Data
% handles structure with handles and user data (see GUIDATA)

% --- Executes when entered data in editable cell(s) in uitable8.


function uitable8_CellEditCallback(hObject, eventdata, handles)
% hObject handle to uitable8 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) edited
% PreviousData: previous data for the cell(s) edited
% EditData: string(s) entered by the user
% NewData: EditData or its converted form set on the Data property.
Empty if Data was not changed
% Error: error string when failed to convert EditData to appropriate
value for Data
% handles structure with handles and user data (see GUIDATA)

% --- Executes when selected cell(s) is changed in uitable8.


function uitable8_CellSelectionCallback(hObject, eventdata, handles)
% hObject handle to uitable8 (see GCBO)
% eventdata structure with the following fields (see UITABLE)
% Indices: row and column indices of the cell(s) currently selecteds
% 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

% --- Executes during object deletion, before destroying properties.


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

You might also like