File Exchange

image thumbnail


version (52.7 KB) by Oleg Komarov
Password dialog and masked edit box uicontrol for passwords


Updated 22 Dec 2016

From GitHub

View Version History

View license on GitHub

Use the passdlg() wrapper to take advantage of several pre-built GUIs or embed the passfield "uicontrol" in your own GUI.
PASSDLG(UITYPE) It will always produce one masked password field plus the
optional components:
- 'u' or 'UsernameField'
- 'c' or 'ConfirmPass'
- 's' or 'ShowHideCheckBox'


passdlg usc

Cite As

Oleg Komarov (2021). okomarov/passfield (, GitHub. Retrieved .

Comments and Ratings (4)

Ebrahim Atya

I have been looking for this for a long time. Thank you very much

Heather Hamilton

Thank you, great function! Can you tell me how to implement this in Matlab's App Designer?

I had a lot of problems about it; but i havn't understand well the code function

Oleg Komarov

@ahswin any suggestions on what could be improved?

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!