Opening a folder in MATLAB on Mac

I have a program I have been running on a PC, which opens a folder to look for files to use for data analysis. The folder is located under a dropfox folder synced to my computer. I just got a new Mac to use for data analysis, and I cannot figure out how to change the code to open the folder off of my Mac. Any suggestions as to format the code to get it to work off of this folder on my Mac?
The code that works on my PC is: C:\Users\mcdannald\Dropbox (McDannald Lab)\Data\RZ Data

2 件のコメント

the cyclist
the cyclist 2015 年 9 月 9 日
Can you post the code that works on the PC?
Rachel
Rachel 2015 年 9 月 9 日
C:\Users\mcdannald\Dropbox (McDannald Lab)\Data\RZ Data

サインインしてコメントする。

回答 (1 件)

the cyclist
the cyclist 2015 年 9 月 9 日

1 投票

It will depend on where the Dropbox folder is located on your Mac. But, if you used the default, I think it will be something like
/Users/mcdannald/Dropbox (McDannald Lab)/Data/RZ Data
[Notice that the slashes go the opposite direction on a Mac.]
If that does not work, try using Finder to find the folder, right-click on it, and then click "Get Info". The listing under "Where" should identify the folder location.

カテゴリ

ヘルプ センター および File ExchangeEntering Commands についてさらに検索

タグ

質問済み:

2015 年 9 月 9 日

コメント済み:

2015 年 9 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by