MATLAB: Calculate sum of series using for

forhomeworksum

I need help to calculate the sum of this example using only for.
Thanks for the help!

Best Answer

Here is an outline to get you started:
a = something; % you put a value here


m = something; % you put a value here
x = something; % you put a value here
y = 0; % the starting y value
for i=1:m % the for-loop indexing
% you put code here to add something to y
end % the end of the for-loop
See the Getting Started tutorials here:
Related Question