Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
16 Nov 2009 TCP/IP Socket Communications in MATLAB using Java Classes A simple example TCP/IP server and client using a helper Java class Author: Rodney Thomson Bartlett, Kevin

22 Jun 2009 Sound Card Spectral Analysis Acquire data from soundcard and plot in time and frequency domains Author: Rodney Thomson Bizkevelci, Erdal

14 Apr 2009 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson Correia, Ricardo

Hello! I have one question.. Can i send wav files through this? Or this is only to send messages?
Thanks for your help

24 Mar 2009 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson Thomson, Rodney

Hi Maurizio,

Unfortunately the read(byte []) method will not work directly from within MATLAB. My thoughts as to why:

When you execute:
  data = zeros(1, 100, 'char');
  data_input_stream.read(data, 0, 100);
It supplies a COPY of the data array which would be populated. Unfortunately you don't have access to this. This requires pass-by-reference semantics which I don't think MATLAB currently support.

To get around this issue personally I've created helper Java classes to read blocks of data and RETURN the Byte array. This requires creating Java classes and compiling them.

Email me if you want some examples.

Rod
  

19 Mar 2009 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson Maurizio

It's very useful to build a simple network with MatLab, but in the example you read abyte in a loop. I've tried to read the buffer with the method read (byte [ ] b, int off, int len) of the class DataInputStream, but I don't find anything into the buffer b; the result of this method (the of bytes read) is correct! How can I pass the input buffer to the method?

05 Sep 2008 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson Ramírez, Jorge

Thanks, it is very easy to use and very useful.

21 Aug 2008 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson Posada, Felipe

Very useful, thank you.

30 Jul 2008 Recursive Directory Function Execution Recurse through all directories executing the supplied function Author: Rodney Thomson Dalon, Thierry

Idea is good but no concatenated output like in filefun FX9723.
only interesting for functions with no output.

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com