walderich
walderich

Reputation: 626

How to access MATLAB's Current Folder History programmatically

Is it possible to access the Current Folder History of MATLAB using the Command Window?

I already searched for this multiple times on the internet as well as forums and the MATLAB help. But I could not find any solution for this.

Maybe it is possible to read the history data from the file where MATLAB stores it. But searching the MATLAB installation directory as well as the userpath I couldn't find the file.

Upvotes: 3

Views: 474

Answers (1)

matlabgui
matlabgui

Reputation: 5672

The history is stored in the prefdir:

edit ( fullfile ( prefdir, 'cwdHistory.m' ) )

Upvotes: 8

Related Questions