1.

Which function does cumulative summation of elements?(a) sumcum[](b) sumcum()(c) cumsum[](d) cumsum()This question was addressed to me in exam.The doubt is from Sums and Products topic in chapter Beyond the Basics of MATLAB

Answer»

The correct ANSWER is (d) cumsum()

To explain: The correct syntax for the function which does CUMULATIVE summation is ‘cumsum()’. Hence option cumsum[] is wrong. The FUNCTIONS in options sumcum() and sumcum[] do not EXIST in MATLAB.



Discussion

No Comment Found

Related InterviewSolutions