OpenWindow no longer working

Hello~
I have not needed to code in MatLab since Summer 2018, and am now working on setting up a new task using MatLab and the Psychophysics Toolbox.  However, I am stuck at square one -- the program is telling me there is an error in the following line of code:

[mainwindow,rect] = Screen(0,'OpenWindow',gray);   --> gray is predefined in the program.

I've also tried:

[mainwindow,rect] = Screen('OpenWindow',0,gray);  --> consistent with previous, successful scripts

Does anyone have any idea why the OpenWindow command is no longer working?

Thanks in advance for your help!

Michelle