Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problem with command "cd"
Date: Mon, 1 Dec 2008 05:12:02 +0000 (UTC)
Organization: PhysioSonics Inc
Lines: 21
Message-ID: <ggvrn2$fv0$1@fred.mathworks.com>
References: <ggvqqt$qvv$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1228108322 16352 172.30.248.37 (1 Dec 2008 05:12:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 1 Dec 2008 05:12:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1129061
Xref: news.mathworks.com comp.soft-sys.matlab:504007


"Roy" <agentof2008@gmail.com> wrote in message <ggvqqt$qvv$1@fred.mathworks.com>...
> I have a problem with the command 'cd'.
> 
> For example: my current directory is I:\research\homework\hw1
> 
> 1. command cd('\research') works.
> 2. command cd('\homework') does not work.
> 
> Could anybody kindly help me on this? I don't understand the logic here.
> 
> Thank you very much. 

You can do
cd('\research') 
cd('homework')

or

cd('\research\homework')

The problem you have is that '\' specified root, and homework is not relative to root.