Hi Shambhu,
I understand that you are not able to get any output in scope in MATLAB R2018b.
If you are experiencing difficulties, you can try restarting MATLAB. If the issue persists, you may consider reinstalling MATLAB R2018b version, as it is functioning properly on my system.
Hope it helps!