Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Analysis Software Support
 How to find your experiment path using findexp

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
charles.michelich Posted - Apr 28 2003 : 5:17:06 PM
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

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.35 seconds. Snitz Forums 2000