Well I found the answer for this issue by myself and this may be helpful for some one new to this task in the future.
I changed the Matlab folder for a shorter path. I created a folder in the C: drive and the program worked withou any issue.
May be the reason for problem may be the longer file path, or file storedr in cloud, hope this bug will be fixed in the future