Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Could anyone help translate this Python code to Matlab code?

2 ビュー (過去 30 日間)
Gaëtan Poirier
Gaëtan Poirier 2017 年 10 月 26 日
コメント済み: Gaëtan Poirier 2017 年 10 月 26 日
I would appreciate if someone could help me translate the following Python code to Matlab code:
import random
N = 10
L = 20.0
sigma = 0.75
n_runs = 800
for runs in range(n_runs):
y = [random.uniform(0.0 L - 2 * N * sigma) for k in range (N)]
y.sort()
print [y[i] + (2 * i + 1) * sigma for i in range(N)]|
Thank you to anyone who can assist me.
  2 件のコメント
Steven Lord
Steven Lord 2017 年 10 月 26 日
This looks very similar to the message you posted about 10 hours ago. If it's related to the same problem, you should probably update that other message since you've already received one response there.
Gaëtan Poirier
Gaëtan Poirier 2017 年 10 月 26 日
I have received a response, but after updating the question, no one has responded to the update. That is why I wanted to post another question.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by