Accessing a local path while running Matlab remotely

7 views (last 30 days)
I am running Matlab remotely through an ssh -X account via the X11 terminal on Mac OS 10.6.8. I am able load and access Matlab just fine. However, there is some very large data on my local computer that I am hoping to analyze via Matlab, and don't know how to set my path in Matlab to be on my local computer instead of the ssh server. At the beginning of my .m file, I have set the home path to the local path on my computer, but as I try to use the fopen command to access the file on my local computer, its value is automatically set to -1, so I know it isn't opening it. Any help would be greatly appreciated.

Answers (1)

Walter Roberson
Walter Roberson on 11 Oct 2011
This is not generally possible. ssh does not provide local/remote filesystem tools: it just gives you a login on the remote box.
If your system is configured with NFS (Networked File System) or SMB, then depending how complete your ssh is, you might be able to do virtual connections between the ports on your system and the ports on the remote server and thereby allow your system to be accessible by the remote system. (But there might be too many broadcast ports that make that workable.)

Categories

Find more on Search Path in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!