how to convert the following code in python?

pts=[];
for i=1:size(pos,2)
pts=[pts , normrnd(0,length,samples,1)];
end
How can i convert this piece of code in python language?
So length and samples are integer number( for example length = 10 and samples = 2000)
pos is an array containing two elements

답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

질문:

2021년 3월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by