This question is closed. Reopen it to edit or answer.
repeating same procedure for two data sets by cell or struct array?
1 view (last 30 days)
I'm struggling to find a way to efficiently repeat the same procedure for two separate data sets. I thought it is something to do with struct or cell arrays, but no idea how to do it. I would truly appreciate your help!
% both data are m by n matrix containing returns of stock prices
% % want to avoid repetition by indexing the data names
% I know it is wrong, but the image of what I would like to do is...
% operation is done only for the first column of the data
% calculate 1 year average