find the entries in a set of elements
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponses (1)
Mundrathi Venugopal
le 4 Fév 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 commentaire
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!