Está en la página 1de 1

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)
[nombre direccion]=uigetfile('*.xlsx', 'Abrir');
if nombre ==0
return
end
%matrix=importdata([direccion nombre]);
[matrix, nota]=xlsread(fullfile(direccion,nombre),1)
axes(handles.axes1);
hold on
plot(matrix(:,1),matrix(:,2), 'r-');
%axis ([ 5 19 0 7 ])
xlabel('Tiempo')
ylabel('Radiacion global UV-B')
title('Radiacion global UV-B')

set(handles.uitable1,'data',matrix);

También podría gustarte