I want to get the totals of each row and column from a table with values inserted by a user
This is my script so far:
row = input('Enter number of rows: ');col = input('Enter number of columns: ');for i = 1:row for j = 1:col str = ['Enter element in row ' num2str(i) ', col ' num2str(j) ': ']; A(i,j) = input(str); endendA;
See the images for how I want it to look compared to how it looks now
Best Answer