I am doing a project in that i have to open the folder using Matlab code. how can I open the folder from desktop using matlab code?
No products are associated with this question.
You get the users directory in Windows with
[~, userdir] = system('echo %USERPROFILE%')
The desktop folder is in this folder.