Sending an image or a text file to another instance of matlab with tcpip connection
Afficher commentaires plus anciens
Hello,
I'm a beginner in MatLab programmation and I'm trying to send a file to another instance of MatLab using the tcpip client/server .
For this i need to send first the size and the number of bytes of the file in order to reshape it. Unfortunately I don't manage to send the size because it's a vector and I don't know how to do it with this kind of value. For the number of bytes I used fprintf but it seems that i can do the same for the vector.
If anyone can help me it would be great. Thanks !
Réponse acceptée
Plus de réponses (3)
Erwan
le 24 Mar 2013
0 votes
3 commentaires
Walter Roberson
le 24 Mar 2013
Sorry, I keep getting confused whether the name is ndim() or ndims(); you should use ndims()
Erwan
le 27 Mar 2013
maxime
le 10 Juin 2013
Hello, I would like to do the same but I can't make it work, could you help me ?
Erwan
le 27 Mar 2013
0 votes
7 commentaires
Walter Roberson
le 27 Mar 2013
You might be able to find a PIC board that had a built-in USB port, but usually you would need a USB to serial convertor.
Erwan
le 30 Mar 2013
Walter Roberson
le 30 Mar 2013
If you are communicating with a PIC, chances are that you would be wanting to use serial functions rather than visa. I could possibly be more specific if you were to refer to a particular PIC development board.
Erwan
le 1 Avr 2013
Walter Roberson
le 1 Avr 2013
It appears that that series of devices has built-in USB.
A quick search does not appear to indicate that anyone has developed a VISA interface for it.
Erwan
le 1 Avr 2013
Walter Roberson
le 1 Avr 2013
Yes, serial functions.
Nagarjun Erappa
le 31 Déc 2018
0 votes
1 commentaire
Walter Roberson
le 31 Déc 2018
send the image content or send the image file ? For example if it happens to be jpeg then should the EXIF get transferred as well ? If the input is animated gif then transfer one frame or all of them ?
Catégories
En savoir plus sur Get Started with MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!