How to transfer .mat files from Windows to RedHat Linux?

조회 수: 4 (최근 30일)
Lena Chang
Lena Chang 2014년 5월 28일
댓글: Image Analyst 2014년 5월 28일
Hi,
Is there a sample Matlab script to transfer .MAT file from Windows 7 to Linux Red Hat using Matlab, automatically?
In another word, I'm looking for a sample batch script to do automatic transfer using MAtlab.
Right now, I'm able to send information using fwrite() function, but I need to transfer a large amount of data in a short period of time.
Thanks, Lena

답변 (1개)

Image Analyst
Image Analyst 2014년 5월 28일
Why not use an external hard drive? Or a flash drive if the mat file is less than 32 GB or so?
Or, if you need to or want to do it via MATLAB code, and if both computers are connected via the LAN, just use system() to call the operating system's command to copy the file.
  댓글 수: 2
Lena Chang
Lena Chang 2014년 5월 28일
thanks for the answer. I've rephrase the quesiton a bit hoping to make it more clear.
Yes, I need to do it via Matlab code, and both computers are connected via the LAN. I'm looking for something that's like WinSCP but is run by Matlab.
Image Analyst
Image Analyst 2014년 5월 28일
But you didn't say what was wrong with just using system() to do the copying. Or copyfile()? And why you need to do it via MATLAB.

댓글을 달려면 로그인하십시오.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by