How to Open Script from Directory in Matlab

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!

Answers (1)

Stephan
Stephan on 4 May 2018
Edited: Stephan on 4 May 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

Categories

Asked:

g
g
on 4 May 2018

Edited:

on 4 May 2018

Community Treasure Hunt

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

Start Hunting!