Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a strong Dropbox user. I usually log in (via SSH) to my Linux machine and use Matlab on a Dropbox folder which automatically syncs everything. However, at this moment, my code generates a lot of huge .mat files that I don't want to sync between my two machines.

It is possible to avoid that? Do I need a Matlab command, a terminal command, a bash script?

share|improve this question
@Dennis thank you for the editing. However anyone knows how to help me :( – Nicholas Mar 31 '13 at 19:04
up vote 0 down vote accepted

If it works for you, you can temporarily pause Dropbox syncing and enable it after you completed your work with this python script. It only works for Dropbox 0.7.x and 0.8.x though.

Also, there are lots of Dropbox addons on this webpage for several coding languages and platforms.

Moreover, with this method you can call python scripts from Matlab.

share|improve this answer
nice trick, I'll try to call the script from matlab or writing one on my own. – Nicholas Jan 21 '14 at 10:32

I would recommend a setup like this:

  1. One folder for things that need to be synchronized, lets call this include
  2. One folder for things that don't need to be synchronized, lets call this exclude

Normally you can just work in the 'include' folder, but when you have some files to save, just set their saving path to the 'exclude' directory.


filePath = fullfile('C','myBigFile.mat')
share|improve this answer
I'll try that thanks – Nicholas Jan 21 '14 at 10:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.