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

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

Answers (4)

Doug Eastman
Doug Eastman on 9 Feb 2011
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 on 9 Feb 2011
If one of the PCs is an FTP server, you can use ftp.

Walter Roberson
Walter Roberson on 9 Feb 2011
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 on 17 Apr 2013
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.

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!