Top 1% contributor

**166**Contributions

39 downloads

1 month ago

Your inner loop should run from j = 1:c not j = i:c

accepted

2

Answered 4 years ago

16 downloads

1 month ago

Try A = [4;8;2;3;8;6]; i = [1;3;5;6]; B = A(i)

accepted

1

Answered 3 years ago

Try r = integral (@(x)f(x)'*f(x), 0, 1, 'ArrayValued', true);

accepted

1

Answered 3 years ago

Replace the plot(x,y) command with area(x,y,'FaceColor',[1 0 0])

accepted

1

Answered 3 years ago