write a script to find the sum of an array of numbers of the form 2n-10, n = 1,2,…, 10.

1 vue (au cours des 30 derniers jours)
DONHILL ADIMA
DONHILL ADIMA le 22 Juin 2021
Réponse apportée : Dhruv G le 22 Juin 2021
Using the programming language and Matlab syntax, write a script to find the sum of an array of numbers of the form 2n-10, n = 1,2,…, 10.
  3 commentaires
DONHILL ADIMA
DONHILL ADIMA le 22 Juin 2021
I have no attempt now, but i have previous work

Connectez-vous pour commenter.

Réponses (1)

Dhruv G
Dhruv G le 22 Juin 2021
Think about how the ':' is used when defining an array within parantheses or in square brackets. Think about how multiplying an array with a scalar works, and look at how the sum() function in matlab works.

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by