find the entries in a set of elements

1 visualización (últimos 30 días)
Thode Sai manish
Thode Sai manish el 3 de Feb. de 2019
Comentada: madhan ravi el 4 de Feb. de 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.

Respuestas (1)

Mundrathi Venugopal
Mundrathi Venugopal el 4 de Feb. de 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 comentario
madhan ravi
madhan ravi el 4 de Feb. de 2019
It‘s obviously homework, don’t provide full solution give hints instead.

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by