Runs a simulation of the WWII-era German Enigma machine. Lets the user edit the encryption parameters and encrypt entire text files.
James Roberts (2019). Enigma (https://www.mathworks.com/matlabcentral/fileexchange/23367-enigma), MATLAB Central File Exchange. Retrieved .
the preprocess function takes the input message (inMsg) and the list of characters used for encoding (characterList) and checks to make sure that the input message only contains valid characters. For instance, if the message contains a "!" but enigma doesn't have a "!" in characterList, preprocess removes the "!" from the message.
I'm new to Matlab and am trying to figure out what the "preprocess" function does in this statement:
% preprocess the message
procMsg = preprocess(inMsg,params.characterList);
Can anyone please help?
If you want to trim all those useless functions from the end of the enigma.m, simply delete the Callback and CreateFcn for each object using GUIDE.
I have done this to save you some time if you are interested.
Thanks for the suggestion. I resubmitted it with a (very) brief help section. I felt like the help file was not the place to go into detail about the functionality of the enigma machine in general so I limited it to more of a "how to use" description than a "how it works" desctiption. Let me know if you have any more suggestions!
How about a help file or some directions?
Added a brief help section to the top of the m-file.