TCP/IP Socket Communications in MATLAB using Java Classes

버전 1.0.0.0 (3.35 KB) 작성자: Rodney Thomson
A simple example TCP/IP server and client using a helper Java class
다운로드 수: 5.4K
업데이트 날짜: 2009/9/7

라이선스 보기

Provides an example Server / Client written in MATLAB that utilises the ability to call Java to perform message communication using TCP/IP.

Similar to my previous example (http://www.mathworks.com/matlabcentral/fileexchange/21131) but allows for much more efficient data transmission by using a helper Java class to minimise function call overhead.

To use the example:

- Start 2 instances of MATLAB
- in the first execute the following:
message = char(mod(1:1000, 255)+1);
server(message, 3000, 10)
- in the second execute the following:
javaaddpath('<path to where the .class file is located>');
data = client('localhost', 3000)

For more details see:
http://iheartmatlab.blogspot.com/2009/09/tcpip-socket-communications-in-matlab.html

인용 양식

Rodney Thomson (2026). TCP/IP Socket Communications in MATLAB using Java Classes (https://kr.mathworks.com/matlabcentral/fileexchange/25249-tcp-ip-socket-communications-in-matlab-using-java-classes), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가
도움

도움 받은 파일: TCP/IP Socket Communications in MATLAB

도움 준 파일: TraCI4Matlab, jtcp(actionStr,varargin)

버전 게시됨 릴리스 정보
1.0.0.0