mHelpMe
mHelpMe

Reputation: 6668

using the path function to change the search path

So I am trying to save a new search path.

I am trying to follow this example from Mathworks Mathworks example

My code is below. mypath is a 120 x 1 cell

path('mypath')

However when I run the code a pop up window says "Error using eval Underfined function 'workspacefunc' for input arguments of type 'struct'

When I try to check the path using the line below I get told the 'path may be bad'

checkPath = path;

Upvotes: 2

Views: 47

Answers (1)

musically_ut
musically_ut

Reputation: 34288

The version they provide works with an array of strings, not a cell of strings. Hence, this should work:

mypath = char(mypath);
path('mypath');

Upvotes: 1

Related Questions