Is it possible to send a file from 1 PC and store it on another via a network from MATLAB?

11 次查看(过去 30 天)
I want to transmit a file that I generated with MATLAB from 1 PC to another. I would like to use TCP/IP or another suitable protocol.
I'm pretty new to MATLAB so it would be great if someone has a hint for me how to do it.

回答(4 个)

Doug Eastman
Doug Eastman 2011-2-9
If the other computer is on the same network and you have access to the file system, you could simply use copyfile.
Another simple solution might be to use sendmail.

Kaustubha Govind
Kaustubha Govind 2011-2-9
If one of the PCs is an FTP server, you can use ftp.

Walter Roberson
Walter Roberson 2011-2-9
If you have the Instrument Control Toolbox, you can use create a tcp object and fread() and fwrite(). Note, though, the the Instrument Control Toolbox does not allow a Matlab session to act as a TCP server (that is, the system that is sitting waiting for a connection.) You could create udp objects with I.C.T. but ensuring the data all gets through becomes more complex.
As an alternative, you can look in the Matlab File Exchange for the tcpudpip contribution, which allows tcp without the I.C.T. The contribution also allows a Matlab program to be a TCP server.

suissa
suissa 2013-4-17
I need your help, I work in matlab for a video project tracking (I realize this is last, and I insert a carrer monitoring so that every time the object moves, the moves and also carrer displays its coordinate (x, y pixel point move) now i want to send these coordinated to another pc via Matlab and UDP, and that these will be coordinated view and be updated, when the point moves on pc1 pc2 also move on. I find some order and I send a message to another pC with UDP and works well, but I could not send the coordinate (x,y pixel point displacement ) please help me and thank you.
j'ai besoin de votre aide, je travail sous matlab pour une projet de vidéo tracking (est j'ai réaliser ce dernier,et j'ai insérer un carrer de suivi pour que chaque fois l'objet bouge, le carrer bouge aussi et affiche ses coordonnée (x,y en pixel du point de déplacement) maintenant je veux envoyer ces coordonnée vers un autre pc via Matlab et avec le protocole UDP ,et que ces coordonnée seront afficher et être mis a jour; quand le point bouge sur le pc1 bouge aussi sur le pc2. j'ai trouver quelque commande et j'ai envoyer un message vers un autre pc avec UDP et sa marche bien, mais j'ai pas pu envoyer les coordonnée (x,y en pixel du point de déplacement) please aide moi et merci.

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by