I wrote a MATLAB program that grabs a screenshot and writes it to the desktop. Since I never planned on sharing it, it had my Desktop path hardcoded in. However, now I would like to generalize the code.
What is the general path to the desktop on Windows? I tried ~/image.tif and Desktop\image.tif but these do not work.