I have this code that outputs answers separately for each column I use the function for. How can I get all the answers in a single concise matrix form?
% matrix
for i = 1:15 y = yval(:,i); trapz(xcord, y)% Function applied to each column
end
Best Answer