Rank: 321 based on 261 downloads (last 30 days) and 6 files submitted
Personal Profile:

http://iheartmatlab.blogspot.com

Professional Interests:

 

Watch this Author's files

 

Files Posted by Rodney View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Sep 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 tcp, ip, socket 42 0
  • 5.0
5.0 | 1 rating
19 Aug 2008 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson applications, example, application, tcpip, test, measurement 123 5
  • 5.0
5.0 | 3 ratings
30 Jul 2008 Screenshot Display Cursor Location Display cursor coordinates within a plot axes window Author: Rodney Thomson customization, plot, windowbuttonmotionfcn, cursor location, cursor, display 21 0
22 Jul 2008 Recursive Directory Function Execution Recurse through all directories executing the supplied function Author: Rodney Thomson directories, recursion, recurse, utilities, files, function handle 12 1
16 Jul 2008 Screenshot Sound Card Spectral Analyser GUI Acquire data from soundcard and plot in time and frequency domains Author: Rodney Thomson graphics, fft, example, application, soundcard, object oriented 39 0
Comments and Ratings by Rodney View all
Updated File Comments Rating
07 Sep 2009 The Matlab code for absorption coefficient in underwater wireless communication networks This code helps to find the absorption coefficient values for a particular frequency range. Author: SUSAN

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

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
  

Comments and Ratings on Rodney's Files View all
Updated File Comment by Comments 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?

Top Tags Applied by Rodney
application, example, utilities, development environment, fft
Files Tagged by Rodney View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Sep 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 tcp, ip, socket 42 0
  • 5.0
5.0 | 1 rating
19 Aug 2008 TCP/IP Socket Communications in MATLAB A simple example TCP/IP server and client Author: Rodney Thomson applications, example, application, tcpip, test, measurement 123 5
  • 5.0
5.0 | 3 ratings
30 Jul 2008 Screenshot Display Cursor Location Display cursor coordinates within a plot axes window Author: Rodney Thomson customization, plot, windowbuttonmotionfcn, cursor location, cursor, display 21 0
22 Jul 2008 Recursive Directory Function Execution Recurse through all directories executing the supplied function Author: Rodney Thomson directories, recursion, recurse, utilities, files, function handle 12 1
16 Jul 2008 Screenshot Sound Card Spectral Analyser GUI Acquire data from soundcard and plot in time and frequency domains Author: Rodney Thomson graphics, fft, example, application, soundcard, object oriented 39 0
 

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