[Solved] Im looking for a way to add up elements of two arrays
My first thought is to do this with arrayfun using an anonymous function that adds each scalar element of a to the full array in b. Then since you get a cell array result you can expand that cell array into the array you are looking for: >> a=[1,2,3,4], b=[5,6,7] >> result = arrayfun(@(x) x+b, … Read more