Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 How to find your experiment path using findexp
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

charles.michelich
BIAC Alum

USA
183 Posts

Posted - Apr 28 2003 :  5:17:06 PM  Show Profile  Reply with Quote
BIAC MATLAB Users,

You can use the function findexp to automatically determine the path to your experiment.

A Windows UNC path (i.e. \\Bristol\BIAC instead of T:\) is returned, therefore the script will work on all computers that are connected to Bristol, no matter which drive letter is being used for the SAN. If you use this to create the paths used in your scripts, it may also make it easier to use the scripts with other experiments.

Here is an example of using findexp when loading data into showsrs2:

expPath=findexp('Example.01');
anatPath=fullfile(expPath,'Data','Anat');
analysisPath=fullfile(expPath,'Analysis');
exam='20010101_12345';

anat=readmr(fullfile(anatPath,exam,'anat.img'),256,256,20,'volume');
tmap=readmr(fullfile(analysisPath,exam,'BinCorrect.img'),64,64,20,'float');
showsrs2(anat,[],tmap);
Enjoy,
Chuck
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.53 seconds. Snitz Forums 2000