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

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 件のコメント

Mohammad Sami
Mohammad Sami 2020 年 11 月 6 日
There is no easy answer. Without knowing the details of what you want to do I can't really say what maybe the best solution for you.
I would advise you not to limit yourself to using just Matlab. You can also potentially use a webserver.
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 日

0 投票

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 件)

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by