Well, the issue seems to have been solved.
Actually I installed Matlab App in C disk/ Program files, which requires high permission.
I reinstalled Matlab in a new files under C disk and installed the engine again.
When I tested codes, is seemed not error occurred.