⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 algrithem_database.m

📁 基于Matlab开发的数字波束形成算法(含界面和6个小算法)
💻 M
📖 第 1 页 / 共 3 页
字号:

% Hints: get(hObject,'String') returns contents of JNR2 as text
%        str2double(get(hObject,'String')) returns contents of JNR2 as a double
JNR2 = str2double(get(hObject, 'String'));
% if isnan(JNR2)
%     set(hObject, 'String', 0);
%     errordlg('Input must be a number','Error');
% end

% Save the new volume value
handles.metricdata.JNR2 = JNR2;
guidata(hObject,handles)


% --- Executes during object creation, after setting all properties.
function JNR2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to JNR2 (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
usewhitebg = 1;
if usewhitebg
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end


% --- Executes on button press in reset.
% function reset_Callback(hObject, eventdata, handles)
% % hObject    handle to reset (see GCBO)
% % eventdata  reserved - to be defined in a future version of MATLAB
% % handles    structure with handles and user data (see GUIDATA)
% 
% initialize_gui(gcbf, handles, true);     %改动处

% --- Executes on button press in Calculate.
% function Calculate_Callback(hObject, eventdata, handles)
% % hObject    handle to Calculate (see GCBO)
% % eventdata  reserved - to be defined in a future version of MATLAB
% % handles    structure with handles and user data (see GUIDATA)

function ang0_Callback(hObject, eventdata, handles)
% hObject    handle to ang0 (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 ang0 as text
%        str2double(get(hObject,'String')) returns contents of ang0 as a double
ang0 = str2double(get(hObject, 'String'));
% if isnan(ang0)
%     set(hObject, 'String', 0);
%     errordlg('Input must be a number','Error');
% end

% Save the new volume value
handles.metricdata.ang0 = ang0;
guidata(hObject,handles)


% --- Executes during object creation, after setting all properties.
function ang0_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ang0 (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
usewhitebg = 1;
if usewhitebg
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end



function ang1_Callback(hObject, eventdata, handles)
% hObject    handle to ang1 (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 ang1 as text
%        str2double(get(hObject,'String')) returns contents of ang1 as a double
ang1 = str2double(get(hObject, 'String'));
% if isnan(ang1)
%     set(hObject, 'String', 0);
%     errordlg('Input must be a number','Error');
% end

% Save the new volume value
handles.metricdata.ang1 = ang1;
guidata(hObject,handles)


% --- Executes during object creation, after setting all properties.
function ang1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ang1 (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
usewhitebg = 1;
if usewhitebg
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end



function ang3_Callback(hObject, eventdata, handles)
% hObject    handle to ang3 (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 ang3 as text
%        str2double(get(hObject,'String')) returns contents of ang3 as a double
ang3 = str2double(get(hObject, 'String'));
% if isnan(ang3)
%     set(hObject, 'String', 0);
%     errordlg('Input must be a number','Error');
% end

% Save the new volume value
handles.metricdata.ang3 = ang3;
guidata(hObject,handles)


% --- Executes during object creation, after setting all properties.
function ang3_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ang3 (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
usewhitebg = 1;
if usewhitebg
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end



function ang2_Callback(hObject, eventdata, handles)
% hObject    handle to ang2 (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 ang2 as text
%        str2double(get(hObject,'String')) returns contents of ang2 as a double
ang2 = str2double(get(hObject, 'String'));
% if isnan(ang2)
%     set(hObject, 'String', 0);
%     errordlg('Input must be a number','Error');
% end

% Save the new volume value
handles.metricdata.ang2 = ang2;
guidata(hObject,handles)

% --- Executes during object creation, after setting all properties.
function ang2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to ang2 (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
usewhitebg = 1;
if usewhitebg
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end



function snap_number_Callback(hObject, eventdata, handles)
% hObject    handle to snap_number (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 snap_number as text
%        str2double(get(hObject,'String')) returns contents of snap_number as a double
snap_number = str2double(get(hObject, 'String'));
% if isnan(snap_number)
%     set(hObject, 'String', 0);
%     errordlg('Input must be a number','Error');
% end

% Save the new volume value
handles.metricdata.snap_number = snap_number;
guidata(hObject,handles)


% --- Executes during object creation, after setting all properties.
function snap_number_CreateFcn(hObject, eventdata, handles)
% hObject    handle to snap_number (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
usewhitebg = 1;
if usewhitebg
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end



function sample_frequency_Callback(hObject, eventdata, handles)
% hObject    handle to sample_frequency (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 sample_frequency as text
%        str2double(get(hObject,'String')) returns contents of sample_frequency as a double
sample_frequency = str2double(get(hObject, 'String'));
% if isnan(sample_frequency)
%     set(hObject, 'String', 0);
%     errordlg('Input must be a number','Error');
% end

% Save the new volume value
handles.metricdata.sample_frequency = sample_frequency;
guidata(hObject,handles)


% --- Executes during object creation, after setting all properties.
function sample_frequency_CreateFcn(hObject, eventdata, handles)
% hObject    handle to sample_frequency (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
usewhitebg = 1;
if usewhitebg
    set(hObject,'BackgroundColor','white');
else
    set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));
end



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

% Hint: get(hObject,'Value') returns toggle state of AM_JAM1


% --- Executes on button press in PM_JAM1.
function PM_JAM1_Callback(hObject, eventdata, handles)
% hObject    handle to PM_JAM1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of PM_JAM1


% --- Executes on button press in radiobutton3.
function AM_JAM2_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton3


% --- Executes on button press in radiobutton4.
function PM_JAM2_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton4


% --- Executes on button press in radiobutton5.
function AM_JAM3_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton5


% --- Executes on button press in radiobutton6.
function PM_JAM3_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton6 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton6

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

% Hint: get(hObject,'Value') returns toggle state of radiobutton6

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

% Hint: get(hObject,'Value') returns toggle state of radiobutton6

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

% Hint: get(hObject,'Value') returns toggle state of radiobutton6

function LCEC_Callback(hObject, eventdata, handles)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -