📄 modexpogui.m
字号:
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction text1_Callback(hObject, eventdata, handles)% hObject handle to text1 (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 text1 as text% str2double(get(hObject,'String')) returns contents of text1 as a double% --- Executes during object creation, after setting all properties.function text2_CreateFcn(hObject, eventdata, handles)% hObject handle to text2 (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction text2_Callback(hObject, eventdata, handles)% hObject handle to text2 (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 text2 as text% str2double(get(hObject,'String')) returns contents of text2 as a double% --- Executes on button press in create_modsig.function create_modsig_Callback(hObject, eventdata, handles)% hObject handle to create_modsig (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) modexpofn 'create_modsig';% --- Executes on button press in create_carsig.function create_carsig_Callback(hObject, eventdata, handles)% hObject handle to create_carsig (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) modexpofn 'create_carsig';% --------------------------------------------------------------------function Untitled_1_Callback(hObject, eventdata, handles)% hObject handle to Untitled_1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --------------------------------------------------------------------function fourierexpo_Callback(hObject, eventdata, handles)% hObject handle to fourierexpo (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) modexpofn 'fourier';% --- Executes during object creation, after setting all properties.function text3_CreateFcn(hObject, eventdata, handles)% hObject handle to text3 (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction text3_Callback(hObject, eventdata, handles)% hObject handle to text3 (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 text3 as text% str2double(get(hObject,'String')) returns contents of text3 as a double% --------------------------------------------------------------------function close_Callback(hObject, eventdata, handles)% hObject handle to close (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) modexpofn 'close';% --------------------------------------------------------------------function print_Callback(hObject, eventdata, handles)% hObject handle to print (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) modexpofn 'print';% --------------------------------------------------------------------function help_Callback(hObject, eventdata, handles)% hObject handle to help (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA) modexpofn 'help';
% --- Creates and returns a handle to the GUI figure.
function h1 = modexpogui_LayoutFcn(policy)
% policy - create a new figure or use a singleton. 'new' or 'reuse'.
persistent hsingleton;
if strcmpi(policy, 'reuse') & ishandle(hsingleton)
h1 = hsingleton;
return;
end
h1 = figure(...
'Units','characters',...
'Color',[0.925490196078431 0.913725490196078 0.847058823529412],...
'Colormap',[0 0 0.5625;0 0 0.625;0 0 0.6875;0 0 0.75;0 0 0.8125;0 0 0.875;0 0 0.9375;0 0 1;0 0.0625 1;0 0.125 1;0 0.1875 1;0 0.25 1;0 0.3125 1;0 0.375 1;0 0.4375 1;0 0.5 1;0 0.5625 1;0 0.625 1;0 0.6875 1;0 0.75 1;0 0.8125 1;0 0.875 1;0 0.9375 1;0 1 1;0.0625 1 1;0.125 1 0.9375;0.1875 1 0.875;0.25 1 0.8125;0.3125 1 0.75;0.375 1 0.6875;0.4375 1 0.625;0.5 1 0.5625;0.5625 1 0.5;0.625 1 0.4375;0.6875 1 0.375;0.75 1 0.3125;0.8125 1 0.25;0.875 1 0.1875;0.9375 1 0.125;1 1 0.0625;1 1 0;1 0.9375 0;1 0.875 0;1 0.8125 0;1 0.75 0;1 0.6875 0;1 0.625 0;1 0.5625 0;1 0.5 0;1 0.4375 0;1 0.375 0;1 0.3125 0;1 0.25 0;1 0.1875 0;1 0.125 0;1 0.0625 0;1 0 0;0.9375 0 0;0.875 0 0;0.8125 0 0;0.75 0 0;0.6875 0 0;0.625 0 0;0.5625 0 0],...
'IntegerHandle','off',...
'InvertHardcopy',get(0,'defaultfigureInvertHardcopy'),...
'MenuBar','none',...
'Name','Modulation Explorer',...
'NumberTitle','off',...
'PaperPosition',[0.25 2.5 15 6],...
'Position',[103.8 9.61538461538462 205.6 55],...
'Renderer',get(0,'defaultfigureRenderer'),...
'RendererMode','manual',...
'HandleVisibility','callback',...
'Tag','modexpo_fig',...
'UserData',zeros(1,0));
setappdata(h1, 'GUIDEOptions', struct(...
'active_h', [], ...
'taginfo', struct(...
'figure', 2, ...
'axes', 11, ...
'text', 18, ...
'checkbox', 5, ...
'pushbutton', 13, ...
'popupmenu', 6, ...
'frame', 2, ...
'edit', 8, ...
'slider', 6), ...
'override', 1, ...
'release', 13, ...
'resize', 'simple', ...
'accessibility', 'callback', ...
'mfile', 1, ...
'callbacks', 1, ...
'singleton', 1, ...
'syscolorfig', 1, ...
'lastSavedFile', 'C:\Documents and Settings\Bob\Desktop\SSUM_WIN\modulation\modexpo.m', ...
'blocking', 0));
h2 = axes(...
'Parent',h1,...
'Units','characters',...
'CameraPosition',[0.5 0.5 9.16025403784439],...
'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),...
'Color',get(0,'defaultaxesColor'),...
'ColorOrder',get(0,'defaultaxesColorOrder'),...
'Position',[139.8 32.1538461538462 65 20.6923076923077],...
'XColor',get(0,'defaultaxesXColor'),...
'YColor',get(0,'defaultaxesYColor'),...
'ZColor',get(0,'defaultaxesZColor'),...
'Tag','sig_3_spec');
h3 = get(h2,'title');
set(h3,...
'Parent',h2,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[0.498397435897436 1.026 1.00005459937205],...
'VerticalAlignment','bottom',...
'HandleVisibility','off');
h4 = get(h2,'xlabel');
set(h4,...
'Parent',h2,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[0.498397435897436 -0.0940000000000001 1.00005459937205],...
'VerticalAlignment','cap',...
'HandleVisibility','off');
h5 = get(h2,'ylabel');
set(h5,...
'Parent',h2,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[-0.0753205128205128 0.494 1.00005459937205],...
'Rotation',90,...
'VerticalAlignment','bottom',...
'HandleVisibility','off');
h6 = get(h2,'zlabel');
set(h6,...
'Parent',h2,...
'Color',[0 0 0],...
'HorizontalAlignment','right',...
'Position',[-2.20673076923077 1.158 1.00005459937205],...
'HandleVisibility','off',...
'Visible','off');
h7 = axes(...
'Parent',h1,...
'Units','characters',...
'CameraPosition',[0.5 0.5 9.16025403784439],...
'CameraPositionMode',get(0,'defaultaxesCameraPositionMode'),...
'Color',get(0,'defaultaxesColor'),...
'ColorOrder',get(0,'defaultaxesColorOrder'),...
'Position',[139.8 18.0769230769231 65 12.4615384615385],...
'XColor',get(0,'defaultaxesXColor'),...
'YColor',get(0,'defaultaxesYColor'),...
'ZColor',get(0,'defaultaxesZColor'),...
'Tag','sig_3_time');
h8 = get(h7,'title');
set(h8,...
'Parent',h7,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[0.498397435897436 1.04304635761589 1.00005459937205],...
'VerticalAlignment','bottom',...
'HandleVisibility','off');
h9 = get(h7,'xlabel');
set(h9,...
'Parent',h7,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[0.498397435897436 -0.155629139072848 1.00005459937205],...
'VerticalAlignment','cap',...
'HandleVisibility','off');
h10 = get(h7,'ylabel');
set(h10,...
'Parent',h7,...
'Color',[0 0 0],...
'HorizontalAlignment','center',...
'Position',[-0.0753205128205128 0.493377483443709 1.00005459937205],...
'Rotation',90,...
'VerticalAlignment','bottom',...
'HandleVisibility','off');
h11 = get(h7,'zlabel');
set(h11,...
'Parent',h7,...
'Color',[0 0 0],...
'HorizontalAlignment','right',...
'Position',[-2.20673076923077 2.98344370860927 1.00005459937205],...
'HandleVisibility','off',...
'Visible','off');
h12 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'ListboxTop',0,...
'Position',[76.2 0.0769230769230769 62.8 7.53846153846154],...
'String',{ '' },...
'Style','frame',...
'Tag','frame1');
h13 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontSize',12,...
'ListboxTop',0,...
'Position',[154.8 53.4615384615385 35 1.46153846153846],...
'String','Modulated Signal',...
'Style','text',...
'Tag','text7');
h14 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontSize',12,...
'ListboxTop',0,...
'Position',[19.6 53.4615384615385 41 1.46153846153846],...
'String','Modulation Signal',...
'Style','text',...
'Tag','text8');
h15 = uimenu(...
'Parent',h1,...
'Callback','modexpogui(''File_Callback'',gcbo,[],guidata(gcbo))',...
'Label','File',...
'Tag','File');
h16 = uimenu(...
'Parent',h15,...
'Callback','modexpogui(''write_soundfile_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Save Modulated Soundfile',...
'Tag','save_modulated_soundfile');
h17 = uimenu(...
'Parent',h15,...
'Callback','modexpogui(''openworkspace_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Open Workspace',...
'Tag','openworkspace');
h18 = uimenu(...
'Parent',h15,...
'Callback','modexpogui(''saveworkspace_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Save Workspace',...
'Tag','saveworkspace');
h19 = uimenu(...
'Parent',h15,...
'Callback','modexpogui(''print_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Print',...
'Tag','print');
h20 = uimenu(...
'Parent',h15,...
'Callback','modexpogui(''close_Callback'',gcbo,[],guidata(gcbo))',...
'Label','Close',...
'Separator','on',...
'Tag','close');
h21 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontSize',12,...
'ListboxTop',0,...
'Position',[89 53.3846153846154 34 1.46153846153846],...
'String','Carrier Signal',...
'Style','text',...
'Tag','text9');
h22 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','modexpogui(''dB_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[79.6 1.38461538461538 7.2 1.46153846153846],...
'String','dB',...
'Style','checkbox',...
'Value',1,...
'Tag','dB');
h23 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','modexpogui(''fftsize_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[120 3.92307692307692 17.4 1.46153846153846],...
'String',{ '64' '128' '256' '512' '1024' '2048' '4096' '8192' '16384' '32768' },...
'Style','popupmenu',...
'Value',4,...
'CreateFcn','modexpogui(''fftsize_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','fftsize');
h24 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','modexpogui(''zoomreset_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[115.6 1.38461538461538 12.6 1.46153846153846],...
'String','Zoom Reset',...
'Tag','zoomreset');
h25 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','modexpogui(''window_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -