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

📄 mycolorselect.asv

📁 前向链路的信道路径仿真 为通信事业做出点小小事情
💻 ASV
📖 第 1 页 / 共 2 页
字号:
% hObject    handle to slidervalue (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor',[.9 .9 .9]);
end



function editgreen_Callback(hObject, eventdata, handles)
% hObject    handle to editgreen (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 editgreen as text
%        str2double(get(hObject,'String')) returns contents of editgreen as a double


% --- Executes during object creation, after setting all properties.
function editgreen_CreateFcn(hObject, eventdata, handles)
% hObject    handle to editgreen (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



function editblue_Callback(hObject, eventdata, handles)
% hObject    handle to editblue (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 editblue as text
%        str2double(get(hObject,'String')) returns contents of editblue as a double


% --- Executes during object creation, after setting all properties.
function editblue_CreateFcn(hObject, eventdata, handles)
% hObject    handle to editblue (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



function edithue_Callback(hObject, eventdata, handles)
% hObject    handle to edithue (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 edithue as text
%        str2double(get(hObject,'String')) returns contents of edithue as a double


% --- Executes during object creation, after setting all properties.
function edithue_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edithue (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



function editsaturation_Callback(hObject, eventdata, handles)
% hObject    handle to editsaturation (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 editsaturation as text
%        str2double(get(hObject,'String')) returns contents of editsaturation as a double


% --- Executes during object creation, after setting all properties.
function editsaturation_CreateFcn(hObject, eventdata, handles)
% hObject    handle to editsaturation (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



function editvalue_Callback(hObject, eventdata, handles)
% hObject    handle to editvalue (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 editvalue as text
%        str2double(get(hObject,'String')) returns contents of editvalue as a double


% --- Executes during object creation, after setting all properties.
function editvalue_CreateFcn(hObject, eventdata, handles)
% hObject    handle to editvalue (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


% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu1
    tempdata=get(hObject,'userdata');
    set(handles.textleft_handle,'BackgroundColor',tempdata(get(hObject,'val'),:));
     %set the new color value
    set(handles.textcolorleft_handle,'string',sprintf('[%.2f %.2f %.2f]',tempdata(get(hObject,'val'),:)));
% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu 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



function textleft_Callback(hObject, eventdata, handles)
% hObject    handle to textleft (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 textleft as text
%        str2double(get(hObject,'String')) returns contents of textleft as a double


% --- Executes during object creation, after setting all properties.
function textleft_CreateFcn(hObject, eventdata, handles)
% hObject    handle to textleft (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



function textright_Callback(hObject, eventdata, handles)
% hObject    handle to textright (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 textright as text
%        str2double(get(hObject,'String')) returns contents of textright as a double


% --- Executes during object creation, after setting all properties.
function textright_CreateFcn(hObject, eventdata, handles)
% hObject    handle to textright (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





function textcolorright_Callback(hObject, eventdata, handles)
% hObject    handle to textcolorright (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 textcolorright as text
%        str2double(get(hObject,'String')) returns contents of textcolorright as a double


% --- Executes during object creation, after setting all properties.
function textcolorright_CreateFcn(hObject, eventdata, handles)
% hObject    handle to textcolorright (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





function textcolorleft_Callback(hObject, eventdata, handles)
% hObject    handle to textcolorleft (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 textcolorleft as text
%        str2double(get(hObject,'String')) returns contents of textcolorleft as a double


% --- Executes during object creation, after setting all properties.
function textcolorleft_CreateFcn(hObject, eventdata, handles)
% hObject    handle to textcolorleft (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




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


% --------------------------------------------------------------------
function menuopen_Callback(hObject, eventdata, handles)
% hObject    handle to menuopen (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[fname,fpath]=uigetfile('*.m','Open a File',100,200)

% --------------------------------------------------------------------
function menusaveas_Callback(hObject, eventdata, handles)
% hObject    handle to menusaveas (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[filename,filepath]=uiputfile('untitle.m','Save a File as',100,200)

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




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

⌨️ 快捷键说明

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