File Exchange

image thumbnail


version 1.0.0 (7.1 KB) by Rik
Return a folder with write permission.


Updated 19 Feb 2021

From GitHub

View Version History

View license on GitHub

If you need to write data to a file for later use, you could store everything in the preferences. However, doing so would require you to load your data to a variable and use getpref/setpref. Especially on Octave this can be fairly slow.

This function will return the path to a folder for which Matlab/Octave has write access. This path will be dependent on the system only, not on the version of Matlab/Octave.

Licence: CC by-nc-sa 4.0

Cite As

Rik (2021). GetWritableFolder (, GitHub. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2020b
Compatible with R13SP1 and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!