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

4 次查看(过去 30 天)
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