MATLAB Answers

0

How do you use ls to change your directory in Matlab?

Asked by Alex Jones on 17 Sep 2019 at 13:53
Latest activity Commented on by Rik
on 17 Sep 2019 at 13:59
I need to use ls to change the directory in Matlab for a homework, I'm a first time user.

  1 Comment

Rik
on 17 Sep 2019 at 13:59
For future questions: have a read here and here.

Sign in to comment.

Tags

1 Answer

Answer by Rik
on 17 Sep 2019 at 13:59
 Accepted Answer

The homework is either badly designed, or is attempting to teach you why you shouldn't use it.
You shouldn't change your current directory during normal use of Matlab. You should be using either relative of full paths to files.
If you use your favorite internet search engine to search for 'change directory Matlab', you will probably find the documation page for the cd function.

  0 Comments

Sign in to comment.