Creating Matrix between two values

조회 수: 15 (최근 30일)
Sevval Yildiz
Sevval Yildiz 2019년 12월 28일
댓글: darova 2019년 12월 30일
How can I creating 2x6 matrix using matrix operations? Elements of the matrix will be random numbers between 10 and 90.

답변 (1개)

Mohammad Sami
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)
  댓글 수: 2
Sevval Yildiz
Sevval Yildiz 2019년 12월 30일
Thx:) It worked.
darova
darova 2019년 12월 30일
Please accept the answer

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by