Dear Omar,
I asked also the support team what to do.
This is the answer I got:
This issue is caused by accidentally shadowing an internal function in MATLAB.
Please execute the following command:
>> which -all printopt
This should only return a single line which looks something like the following on a windows machine:
C:\Program Files\MATLAB\R2018a\toolbox\local\printopt.m
If there are any other files returned which are not within the MATLAB root directory, they must be deleted or renamed.
This should fix the printing issue.
In my case this worked.
Best regards, Lisa