Community Profile |

Top 1% contributor

**166**Contributions

28 downloads

3 years ago

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

accepted

2

Answered 2 years ago

37 downloads

2 years ago

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

accepted

1

Answered 1 year ago

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

accepted

1

Answered 2 years ago

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

accepted

1

Answered 2 years ago

Try A(any(isnan(A),2)|any(A==0,2),:) = []

3

Answered 2 years ago