📄 paramset.asv
字号:
% 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'));
end
function edit_Td_Callback(hObject, eventdata, handles)
% hObject handle to edit_Td (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 edit_Td as text
% str2double(get(hObject,'String')) returns contents of edit_Td as a double
% --- Executes during object creation, after setting all properties.
function edit_Td_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_Td (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'));
end
function edit_FD_Callback(hObject, eventdata, handles)
% hObject handle to edit_FD (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 edit_FD as text
% str2double(get(hObject,'String')) returns contents of edit_FD as a double
% --- Executes during object creation, after setting all properties.
function edit_FD_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_FD (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'));
end
function edit_DelayVector_Callback(hObject, eventdata, handles)
% hObject handle to edit_DelayVector (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 edit_DelayVector as text
% str2double(get(hObject,'String')) returns contents of edit_DelayVector as a double
% --- Executes during object creation, after setting all properties.
function edit_DelayVector_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_DelayVector (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'));
end
function edit_GainVector_Callback(hObject, eventdata, handles)
% hObject handle to edit_GainVector (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 edit_GainVector as text
% str2double(get(hObject,'String')) returns contents of edit_GainVector as a double
% --- Executes during object creation, after setting all properties.
function edit_GainVector_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_GainVector (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'));
end
% --- Executes on button press in pshbtn_reset.
function pshbtn_reset_Callback(hObject, eventdata, handles)
% hObject handle to pshbtn_reset (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.edit_NumSig,'string',100);
set(handles.edit_srState,'String',12345);
set(handles.edit_dpt,'String',3);
set(handles.edit_SNR,'string',10);
set(handles.edit_state,'String',71);
set(handles.edit_Td,'string',0.001);
set(handles.edit_FD,'string',40);
set(handles.edit_DelayVector,'string','[0 2e-6]');
set(handles.edit_GainVector,'string','[0 -3]');
set(handles.checkbox1,'value',1);
set(handles.checkbox2,'value',1);
set(handles.checkbox3,'value',1);
% --- Executes on button press in pshbtn_ok.
function pshbtn_ok_Callback(hObject, eventdata, handles)
% hObject handle to pshbtn_ok (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
param.NumSig=str2num(get(handles.edit_NumSig,'string'));
param.srState=str2num(get(handles.edi))
param.SNR=str2num(get(handles.edit_SNR,'string'));
param.State=str2num(get(handles.edit_state,'String'));
param.Td=str2num(get(handles.edit_Td,'string'));
param.FD=str2num(get(handles.edit_FD,'string'));
param.DelayVector=get(handles.edit_DelayVector,'string');
param.GainVector=get(handles.edit_GainVector,'string');
assignin('base','param',param);
close;
% --- Executes on button press in pshbtn_cancel.
function pshbtn_cancel_Callback(hObject, eventdata, handles)
% hObject handle to pshbtn_cancel (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close;
function edit_state_Callback(hObject, eventdata, handles)
% hObject handle to edit_state (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 edit_state as text
% str2double(get(hObject,'String')) returns contents of edit_state as a double
% --- Executes during object creation, after setting all properties.
function edit_state_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_state (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'));
end
function edit_srState_Callback(hObject, eventdata, handles)
% hObject handle to edit_srState (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 edit_srState as text
% str2double(get(hObject,'String')) returns contents of edit_srState as a double
% --- Executes during object creation, after setting all properties.
function edit_srState_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_srState (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'));
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
set(hObject,'BackgroundColor','white');
else
set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end
function edit_dpt_Callback(hObject, eventdata, handles)
% hObject handle to edit_dpt (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 edit_dpt as text
% str2double(get(hObject,'String')) returns contents of edit_dpt as a double
% --- Executes during object creation, after setting all properties.
function edit_dpt_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit_dpt (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'));
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -