how to read the data (.dat) inside online cluster (sftp) without downloading them.

조회 수: 3 (최근 30일)
Nicola Savelli
Nicola Savelli 2021년 12월 7일
편집: Ayush Modi 2024년 2월 20일
Hi to Everyone and thank you in advance.
I would like to connect my local matlab (R2021b) to the online cluster (sftp protocol) in order to read and use data inside such cluster without downloading any data because of space on my hard disk.
By means of sftp() I'm able to reach the cluster, but so far the only way that I have found to read data is to download them.
Do you have any suggestions to fix this problem?
Nicola.

답변 (1개)

Ayush Modi
Ayush Modi 2024년 2월 20일
편집: Ayush Modi 2024년 2월 20일
Hi Nicola,
I understand you want to work with data on a remote server through "sftp" without downloading them. "sftp" functionality in MATLAB only supports download, upload and delete operations on files.
However, you can try work around this limitation with a few different strategies:
  1. Use SSH to run MATLAB commands on the remote cluster: If you have MATLAB installed on the remote cluster and it is possible to use SSH to execute commands, you could SSH into the cluster and run your MATLAB code there, working with the data directly on the cluster.
  2. Mount the remote file system: If your operating system supports it, you could mount the remote file system as a network drive using SSHFS (SSH Filesystem). This would allow you to access the files as if they were on your local machine without actually downloading them. You would then use MATLAB's standard file I/O functions to read and write data.
I hope this resolves the issue you were facing.

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by