You can also write c code and compile them so that they can run in Matlab these are called mex files. But most things that you want to do you will be able to do in Matlab, or by using already created mex files from the Psychophysics Toolbox. MixStrings.m Click on the command window. You ll get a blank document. This will be your new program.
Every new program is begun with a few lines of documentation.
This is called a header. Good headers look like this. Save the file. For now save it on the desktop. The computer has to know where to look for your file.