MATLAB Answers

0

find the entries in a set of elements

Asked by Thode Sai manish on 3 Feb 2019
Latest activity Commented on by madhan ravi
on 4 Feb 2019
Let A= [35,46, 78, 23, 5, 16, 81, 3, 35]
a, Which command is used to find the seventh entry of A.
b, Which command is used to find the sum of third and fifth entries of A.

1 Answer

Answer by Mundrathi Venugopal on 4 Feb 2019

A = [35,46, 78, 23, 5, 16, 81, 3, 35];
a = A(7); % to find the seventh entry of A
b = sum(A([3 5])); % to find the sum of third and fifth entries of A

  1 Comment

It‘s obviously homework, don’t provide full solution give hints instead.

Sign in to comment.