1.

To calculate the sum of only absolute variables in a series, we use _________(a) sum(abs())(b) abssum()(c) sumabs()(d) abs(sum())I had been asked this question in my homework.I need to ask this question from Sums and Products in chapter Beyond the Basics of MATLAB

Answer»

The correct option is (c) sumabs()

The best I can EXPLAIN: sumabs() is a pre-defined function in MATLAB. It will select the absolute values from a series and find the summation of those values only. sum(ABS()) will convert all the values in the series to their absolute values. abs(sum()) will GIVE the absolute VALUE of the summation.



Discussion

No Comment Found

Related InterviewSolutions