How to Open Script from Directory in Matlab

56 visualizzazioni (ultimi 30 giorni)
g
g il 4 Mag 2018
Modificato: Stephan il 4 Mag 2018
Hello,
I am new to Matlab, so I am wondering how to open a script in a directory in Matlab. The directory is on a server.
I tried typing the name of the script into the command line, but the directory Matlab is using does not match the directory where the script is. I tried typing in the full name of the script file, but that also did not work. I tried changing the directory that Matlab is using, but I could not find the one I need (since it is in terminal on a server).
If I'm in terminal on a server, how can I open a script in Matlab? Alternatively, how can I open the script in Matlab if it's on this server? Thank you!

Risposte (1)

Stephan
Stephan il 4 Mag 2018
Modificato: Stephan il 4 Mag 2018
Hi,
when working in Matlab try this:
run('C:\Your Directory\subfolder\scriptname.m')
or
run('\\11.222.333.44\Server Directory\subfolder\scriptname.m')
related to this topic see also here:
and here:
if you want to use this path more often.
Best regards
Stephan

Categorie

Scopri di più su Search Path in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by