How can I generate random numbers
이전 댓글 표시
Let a1=[3.698247068550237,7.396494137100475]
Let a2=[-0.315547526817319,-0.105392873956985]
Hw to find the random numbers in the following code
arr(i).Position=unifrnd(a2,a1,10);
The above is not working
댓글 수: 4
Rik
2021년 1월 11일
What are you trying to do? You want 10 values, but you only specify 2 ranges.
Kanika Bhalla
2021년 1월 11일
Rik
2021년 1월 11일
So you want some sort of recursive behavior? That is not what that function does, so if you want it, you will have to write it.
It is still not quite clear to me what you want, so I can't help you write it.
Kanika Bhalla
2021년 1월 11일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!