How to calculate mean of specified row and column of multiple dataset of structure?
I’m dealing with a structure full of data, one of the data is called BEST and there are 50 of them so that is data(i).best in which i is from 1 to 50, each data(i).best contains a 10×10 table of numbers. I need to calculate mean of each row and column corresponding to each data(i).best, for example I need to sum up all of the data that are in data(i).best(5,7) (i is from 1 to 50) and devide it by 50. how am I supposed to do so? I tried using three layers of "for" and it didn’t seem to help.I’m dealing with a structure full of data, one of the data is called BEST and there are 50 of them so that is data(i).best in which i is from 1 to 50, each data(i).best contains a 10×10 table of numbers. I need to calculate mean of each row and column corresponding to each data(i).best, for example I need to sum up all of the data that are in data(i).best(5,7) (i is from 1 to 50) and devide it by 50. how am I supposed to do so? I tried using three layers of "for" and it didn’t seem to help. I’m dealing with a structure full of data, one of the data is called BEST and there are 50 of them so that is data(i).best in which i is from 1 to 50, each data(i).best contains a 10×10 table of numbers. I need to calculate mean of each row and column corresponding to each data(i).best, for example I need to sum up all of the data that are in data(i).best(5,7) (i is from 1 to 50) and devide it by 50. how am I supposed to do so? I tried using three layers of "for" and it didn’t seem to help. structures, mean, data MATLAB Answers — New Questions