The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How to run matlab in a cluster from various folders
Replies: 3   Last Post: Jan 2, 2013 6:27 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 2
Registered: 12/24/12
How to run matlab in a cluster from various folders
Posted: Dec 24, 2012 4:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am trying to run a matlab file "main.m" that is located in folder ~/home/matlab.
Ideally I want to locate an .sh file in ~/home that runs the matlab file main.m located in ~/home/matlab. How can I do it?

It is easy to do it when both my .sh file and matlab file are in the same folder. I then need to write

matlab -nodesktop -nosplash -r main

and it works fine. However I cannot find how to run something like

matlab -nodesktop -nosplash -r matlab/main


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.