Creating Matrix between two values

16 vues (au cours des 30 derniers jours)
Sevval Yildiz
Sevval Yildiz le 28 Déc 2019
Commenté : darova le 30 Déc 2019
How can I creating 2x6 matrix using matrix operations? Elements of the matrix will be random numbers between 10 and 90.

Réponses (1)

Mohammad Sami
Mohammad Sami le 30 Déc 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 commentaires
Sevval Yildiz
Sevval Yildiz le 30 Déc 2019
Thx:) It worked.
darova
darova le 30 Déc 2019
Please accept the answer

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by