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

6 views (last 30 days)
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

Answers (1)

Image Analyst
Image Analyst on 28 May 2014
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 Comments
Lena Chang
Lena Chang on 28 May 2014
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 on 28 May 2014
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.

Sign in to comment.

Categories

Find more on Programming 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!