Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
how to input values in a 2-D matrix using a nested for loop of size 5*5?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by