what I should modify the following code and can explain how we can define with built in function and without built in function.
s=0;a=[1 3 5 7 8 6]for(i=1:1:4)s=s+a(i);enddisp('sum=')disp(s)
array
s=0;a=[1 3 5 7 8 6]for(i=1:1:4)s=s+a(i);enddisp('sum=')disp(s)
Best Answer