Is it possible to hide the characters I type in MATLAB so that they are not displayed on the screen?

9 views (last 30 days)
I would like to have the ability to input characters into MATLAB without the characters being displayed on the screen. I can use this for entering passwords.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 14 Apr 2023
Edited: MathWorks Support Team on 26 Apr 2023
This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is no built-in function in MATLAB to hide characters that are typed in. However, there is a function "passcode.m" in MATLAB Central that can achieve this in an input dialog box. You can download this function from the following page:
Note that MathWorks does not guarantee or warrant the use or content of submissions in MATLAB Central. Any questions, issues, or complaints should be directed to the contributing author.

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!