Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

i want to convert python code in MATLAB

조회 수: 1 (최근 30일)
jazba hafeez
jazba hafeez 2022년 3월 8일
마감: John D'Errico 2022년 3월 8일
def somersault():
for i, monkey in enumerate(monkeys):
alfa = random.uniform(c, d)
somersault_pivot = [statistics.mean(
monkeys[row][col] for row in range(M)) for col in range(len(monkey))]
y = [x + alfa * (pj - x) for x, pj in zip(monkey, somersault_pivot)]
while not feasible_position(y, constraint1, constraint2):
alfa = random.uniform(c, d)
y = [x + alfa * (pj - x)
for x, pj in zip(monkey, somersault_pivot)]
monkeys[i] = y

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by