Creating vector using rand() function in a range
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi,
Can you please help me how to generate a (1x10) vector using rand() function, with values between (0,7)? I got to do it with randi() function like this:
A = randi([0 7],1,10)
But I want to do it with rand() function instead of randi(). Any help will be really apprecited. Thanks
댓글 수: 0
채택된 답변
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 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!