Add a function to Matlab path

17,147

Solution 1

strsplit is not a matlab function, in the sense that it does not come with MATLAB, your link is to the mathworks file exchange which is a community of MATLAB users.

You can use the dialog box in the "File"->"Set Path" menu to add the file to your path.
This is assuming you have actually the file and for some reason it is not on your path.

Solution 2

From the information you provide and from Matlab's documentation strsplit is not an intrinsic Matlab function. So the question for you is Where have you installed the source of the strsplit function ? When you've answered that for yourself use the File | Set Path menu.

Solution 3

Obviously, as others have said, you need to make sure the file actually exists in some directory on your computer. If you need to use this file in a script, you can use the following line to add this file's particular location to your path.

path(path,'c:\example\fileishere');

Solution 4

In order to confirm that it is in the path, try to run which to discover where it is located

 which('strsplit')
Share:
17,147
Jeiman
Author by

Jeiman

Updated on June 27, 2022

Comments

  • Jeiman
    Jeiman almost 2 years

    I am trying to add the strsplit function to my MATLAB path, but I don't know how to do it.

    Link : strsplit function

    I am trying to use the function for my work, but somehow that function does not exist in my version of MATLAB that i currently have.