Borrar filtros
Borrar filtros

how to input values in a 2D matrix using a nested for loop of size 5*5?

4 visualizaciones (últimos 30 días)
how to input values in a 2-D matrix using a nested for loop of size 5*5?

Respuesta aceptada

Thorsten
Thorsten el 3 de Dic. de 2015
Editada: Thorsten el 3 de Dic. de 2015
for i = 1:5
for j = 1:5
A(i,j) = input(sprintf('please enter value (%d, %d) >> ', i, j))
end
end

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays 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