Creating Matrix between two values

10 次查看(过去 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)

类别

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