matlab gui 密码登录 论文,MATLAB GUI 密码输入
该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
function varargout = zhanghao(varargin)
% ZHANGHAO MATLAB code for zhanghao.fig
% ZHANGHAO, by itself, creates a new ZHANGHAO or raises the existing
% singleton*.
%
% H = ZHANGHAO returns the handle to a new ZHANGHAO or the handle to
% the existing singleton*.
%
% ZHANGHAO('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in ZHANGHAO.M with the given input arguments.
%
% ZHANGHAO('Property','Value',...) creates a new ZHANGHAO or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before zhanghao_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to zhanghao_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help zhanghao
% Last Modified by GUIDE v2.5 12-Nov-2015 10:15:03
% Begin initialization code - DO NOT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @zhanghao_OpeningFcn, ...
'gui_OutputFcn', @zhanghao_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before zhanghao is made visible.
function zhanghao_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to zhanghao (see VARARGIN)
% Choose default command line output for zhanghao
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes zhanghao wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = zhanghao_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
function name_Callback(hObject, eventdata, handles)
% hObject handle to name (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 name as text
% str2double(get(hObject,'String')) returns contents of name as a double
input1=get(hObject,'string');
guidata(hObject,handles)
% --- Executes during object creation, after setting all properties.
function name_CreateFcn(hObject, eventdata, handles)
% hObject handle to name (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 password_Callback(hObject, eventdata, handles)
% hObject handle to password (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 password as text
% str2double(get(hObject,'String')) returns contents of password as a double
% --- Executes during object creation, after setting all properties.
function password_CreateFcn(hObject, eventdata, handles)
% hObject handle to password (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.
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(gcf);
run zhanghao2.m
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(gcf)
% --- Executes on key press with focus on password and none of its controls.
% --- Executes on key press with focus on figure1 and none of its controls.
function figure1_KeyPressFcn(hObject, eventdata, handles)
% hObject handle to figure1 (see GCBO)
% eventdata structure with the following fields (see FIGURE)
%Key: name of the key that was pressed, in lower case
%Character: character interpretation of the key(s) that was pressed
%Modifier: name(s) of the modifier key(s) (i.e., control, shift) pressed
% handles structure with handles and user data (see GUIDATA)
c = eventdata.Character;
if isstrprop(c, 'graphic')
set(hObject,'userdata',[get(hObject,'userdata') c]);
set(handles.password,'string',[get(handles.password,'string') '*']);
else
val = double(c);
if ~isempty(val)
if val == 13
btnlog_Callback(handles.password, eventdata, handles);
elseif val == 8
str = get(handles.password, 'userdata');
if ~isempty(str)
str(end) = [];
end
set(handles.password, 'userdata', str);
str2 = get(handles.password, 'string');
if ~isempty(str2)
str2(end) = [];
end
set(handles.password, 'string', str2)
end
end
end
matlab gui 密码登录 论文,MATLAB GUI 密码输入相关推荐
- mysql的免密码登录_mysql免密码登录(mysql跳过密码登录)
mysql免密码登录(mysql跳过密码登录) 2020-05-15 13:07:13 共10个回答 1.用系统管理员登陆windows系统.2.停止MySQL的服务.3.运行cmd进入dos命令窗口 ...
- web安全—万能密码登录(跳过密码验证)
什么是万能密码登录呢,我们可以理解为绕过密码验证.通过构造语句来直接绕过登录的验证. 这里我们举dvwa的靶场为例子 我们打开靶场,看到一个登录页面,上面显示让我们输入用户密码,由于我们不知道他的账号 ...
- python注册用户名和密码登录_用户名和密码登录
我想创建一个登录,其中将打开一个文本/csv文件,从文件中读取"有效"的用户名和密码,然后如果用户添加的内容与文件中的内容匹配,那么它将允许访问程序的其余部分 如何将下面的代码集成 ...
- MySQL跳过密码登录并修改用户密码
1.跳过密码登录: MySQL配置文件/etc/my.cnf中,在[mysqld]下添加skip-grant-tables,关闭 MySQL服务并重新开启: 输入命令:mysql -u root -p ...
- mysql登录不用输密码登录_mysql实现不用密码登录的实例方法
具体方法: 第一步:停止mysql服务 /etc/init.d/mysqld stop 第二步:跳过密码验证 /usr/bin/mysqld_safe --skip-grant-tables 或 my ...
- matlab数值分析与应用论文,MATLAB数值分析与应用
MATLAB是数值分析领域使用广泛的语言之一.本书以实验教程的形式介绍如何使用MATLAB编程实现数值分析计算问题,内容涵盖数值分析的多个方面. 全书包括13章内容(分3个部分).部分(章)讲述MAT ...
- matlab语句运算相关论文,matlab教程论文.doc
matlab教程论文.doc MATLAB教程论文这本书以MATLABR2012A为基础修订,系统讲解MATLAB基本环境和操作要旨:分章阐述符号计算.数值计算.计算结果可视化及编程精要:举例展现MA ...
- php不用密码登录,使用散列密码登录PHP
正如标题所示,在注册表单中对密码进行哈希处理后,我无法登录用户.我已经使用了PHP内置的password_hash()和password_verify()函数,但它在signin.php上,其中使用了 ...
- 禅道管理员admin密码登录失败,更改密码
在禅道xampp中点击访问,点击开源版登录管理员账户失败,更改密码,重新打开访问网页. 点击下方数据库管理 在下图MySQ登录页面中写出相对应的数据,点击登录 L 登录后,选择数据库 左边状态栏下滑找 ...
最新文章
- Playmaker全面实践教程之Playmaker常用工具
- windows10 安装docker
- apache arm 交叉编译_arm apache php交叉编译
- 14-CoreData兼容iOS9和iOS10
- vscode 新建python 终端
- python处理报错_python3报错及解决方案/须注意的细节(持续更新)
- OpenCV读取RTSP视频流
- 使用 Android 签名 APK
- WinSock编程怎么把u_long型的IP地址转换为点分十进制
- 机器学习(周志华) 第七章贝叶斯分类器
- 网络远程控制原理及技术实现
- 电脑卡顿反应慢怎么处理?电脑提速,4个方法!
- runHiC分析HiC_seq数据
- 【小萝莉说Crash】第一期:Unrecognized selector sent to instance xxxx
- go语言的iota是什么意思_golang 使用 iota
- 基于STC15系列单片机课程中讲到的汇编指令(二)
- hadoop 四种压缩格式
- 解析法实现多元线性回归的实例
- CSK与KCF算法推导(二)
- 支付系统架构V1.0
热门文章
- linux之ftp怎么把本地文件拷贝到服务端
- 知道经纬度用python画路线图_神级程序员教你用Python如何画一个中国地图!(好好玩)...
- 25岁男生要有多少存款才能让女友满意?
- 如何机智的弄坏一台电脑?
- 学校老师绝对不会教的方法,让你的孩子拥有一个开挂般的人生!
- 2500 万行的代码就问你敢不敢动?!
- 春节特惠活动┃不只是舒适,简直是享受,Google公司用的腰靠,到底有什么秘密?...
- 浅谈协同过滤推荐算法
- mysql 批量_mysql LOAD语句批量录入数据
- 计算机语言平均数怎么算,使用python怎么求三个数的平均值