10x10 Matrix

23 visualizaciones (últimos 30 días)
Gulnabi sadat
Gulnabi sadat el 18 de Abr. de 2021
Comentada: Gulnabi sadat el 18 de Abr. de 2021
Create a 10x10 matrix with random numbers between 0 and 10. Now, make all elements in the first row
and first column equal to 1.

Respuestas (1)

David Fletcher
David Fletcher el 18 de Abr. de 2021
a=ones(10);
a(2:end,2:end)=randi([0 10],9)
  1 comentario
Gulnabi sadat
Gulnabi sadat el 18 de Abr. de 2021
Thank so much! It worked

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by