Creating Matrix between two values

10 Ansichten (letzte 30 Tage)
Sevval Yildiz
Sevval Yildiz am 28 Dez. 2019
Kommentiert: darova am 30 Dez. 2019
How can I creating 2x6 matrix using matrix operations? Elements of the matrix will be random numbers between 10 and 90.

Antworten (1)

Mohammad Sami
Mohammad Sami am 30 Dez. 2019
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 Kommentare
Sevval Yildiz
Sevval Yildiz am 30 Dez. 2019
Thx:) It worked.
darova
darova am 30 Dez. 2019
Please accept the answer

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Produkte


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by