Creating Matrix between two values

10 visualizaciones (últimos 30 días)
Sevval Yildiz
Sevval Yildiz el 28 de Dic. de 2019
Comentada: darova el 30 de Dic. de 2019
How can I creating 2x6 matrix using matrix operations? Elements of the matrix will be random numbers between 10 and 90.

Respuestas (1)

Mohammad Sami
Mohammad Sami el 30 de Dic. de 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 comentarios
Sevval Yildiz
Sevval Yildiz el 30 de Dic. de 2019
Thx:) It worked.
darova
darova el 30 de Dic. de 2019
Please accept the answer

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by