Creating Matrix between two values
조회 수: 15 (최근 30일)
이전 댓글 표시
How can I creating 2x6 matrix using matrix operations? Elements of the matrix will be random numbers between 10 and 90.
댓글 수: 0
답변 (1개)
Mohammad Sami
2019년 12월 30일
If I understood correctly, you can use the function randi to generate a matrix of integers for any specified size.
randi([10 90],2,6)
참고 항목
카테고리
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!