如何在Matlab中创建一个客户端和两个服务器(一台计算机) [英] How to create one client and 2 servers in Matlab (one computer)

查看:516
本文介绍了如何在Matlab中创建一个客户端和两个服务器(一台计算机)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题如下:



我需要在matlab中进行简单的模拟。我是一个客户端,有两个二进制向量A和B.同时我需要有2个独立的服务器(在同一台计算机上)。两个服务器都需要包含另一个向量X.



我想将我的A向量发送到server1,我希望服务器计算向量A和X之间的内积,以及然后把结果发回给我。



我发送给server2的我的B矢量它应该计算B和X之间的内积,然后将结果发送给我。



能否请你帮我构建客户端和服务器。我一直在寻找帮助....

My problem is the following:

I need to make a simple simulation in matlab. Im a "client" that has two binary vectors A and B. At the same time I need to have 2 independent servers (in the same computer). Both servers need to contain another vector X.

I want to send my A vector to server1 and I want the server to calculate the innerproduct between vectors A ans X, and then send the result back to me.

My B vector I send to server2 and it should calculate the innerproduct between B and X, and then send the result back to me.

Can you please help me with the construction of the client and the servers. I've been looking everywhere for help....

推荐答案

这篇关于如何在Matlab中创建一个客户端和两个服务器(一台计算机)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆