PracticeTestGeeks home

MATLAB FREE MATLAB Programming and Scripting Questions and Answers

What is the final value of the variable `total` after the following MATLAB code is executed?
```matlab

total = 0;

data = [10, -5, 20, 0, -15, 30];

for k = 1:length(data)

if data(k) < 0

continue;

end

total = total + data(k);

end

disp(total);

```

Select your answer