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 Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by