MATLAB: How to input values in a 2D matrix using a nested for loop of size 5*5

matrix

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

Best Answer

for i = 1:5
for j = 1:5
A(i,j) = input(sprintf('please enter value (%d, %d) >> ', i, j))
end
end
Related Question