How to Transfer Data Between More than 2 Computers Using MatLab?

조회 수: 1 (최근 30일)
Levi Waldron
Levi Waldron 2020년 11월 6일
답변: Mohammad Sami 2020년 11월 9일
Is there an easy way to communicate information between multiple computers at the same time? Ideally, I'd like it to work consistently with 3 or more devices, but it won't always be the same couple devices trying to connect.
  댓글 수: 3
Levi Waldron
Levi Waldron 2020년 11월 6일
For more context, I am trying to create a simple video game where players take turns until someone wins.
Mohammad Sami
Mohammad Sami 2020년 11월 7일
Perhaps you can use a web server stack such as WAMP. You can program a rest API in PHP and store the state in My SQL. The clients can get the data from API using MATLAB webread and send the data using webwrite.
https://www.mathworks.com/help/matlab/ref/webread.html
https://www.mathworks.com/help/matlab/ref/webwrite.html

댓글을 달려면 로그인하십시오.

채택된 답변

Mohammad Sami
Mohammad Sami 2020년 11월 9일
A second potential option for you would be to use Jeremy's MatlabWebSocket from File exchange.
One of the matlab instance can create the Websocket server, the rest can create Websocket clients.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Web Services에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by