MATLAB: Sum of first 100 integers homeworksum Write a script that uses a for loop to calculate the sum of the first 100 integer numbers Best Answer my_sum = 0;for ii = 1:100 my_sum = my_sum + ii;end Related SolutionsMATLAB: Simulation throwing of two dice histogram(sum(randi(6,2,input('number of throws'))));%assuming you want the sum of the dice plotted MATLAB: Help with For End loop n=10;theSum = 0;for k = 1 : n theSum =OK, that should be enough hint for you to finish your homework. Related QuestionAdding number within a rangeI need help writing a matlab functionHow to use “or”
Best Answer