function x = specview_loadspectrum

FileBoxHandle = findobj(gcbf,'Tag','filebox');                                               
PathBoxHandle = findobj(gcbf,'Tag','pathbox');  
filename = get(FileBoxHandle,'String');                                                      
path = get(PathBoxHandle,'String');             
strcat(path,filename)	%debugging
%set(FileBoxHandle, 'String','Geddy Lee plays bass better than Jesus');                       
sp = read_spectrum(strcat(path,filename));                                                   
PlotHandle = findobj(gcbf,'Tag','spec_plot1');                                               
plot(sp);

%set(PlotHandle,'UserData',sp);                                                               
%spec = get(PlotHandle,'UserData');                                                           
%plot(spec); 