Creating Matrix between two values

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일

5 개 추천

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

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

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2019년 12월 28일

댓글:

2019년 12월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by