Building projects with Matlab

This section explains how to build Matlab programs using psychWithJava package. If you haven't yet installed Java, psychWithJava or haven't yet set up your system and configured your Matlab, you should first do so by following the instructions on Installation and Configuration page

Create a .m file

Running Matlab programs using psychWithJava

    Launch Matlab, navigate to the directory where you downloaded the files. Open the program in editor and inspect it. To open it in editor type
    edit HelloPsychophysicist.m
    and press enter. Can you see the import psychWithJava.*; line near the top? To execute the program type
    and press enter. If there were no errors you should now be running the sample program.