Hi,
I tried running the following code on R2022a and encountered no such error.
x=1;
y=1;
scatter(x,y);
Assuming you are executing only the above 3 lines of code and still encountering errors, it might be an issue with your MATLAB installation. You can perform initial troubleshooting by executing the following commands :-
>> restoredefaultpath
>> rehash toolboxcache
>> sl_refresh_customizations
For more assistance with your MATLAB Installation, please contact MathWorks Technical Support.