script ive used:
m = input('Enter number of rows: ');n = input('Enter number of columns: ');for i = 1:m for j = 1:n str = ['Enter element in row ' num2str(i) ', col ' num2str(j) ': ']; a(i,j) = input(str); endenda
but this script prompts the user for to enter all elements while i need only to prompt the user for specific rows and columns,can anyone kindly advise me on this?
Best Answer