write a script to find the sum of an array of numbers of the form 2n-10, n = 1,2,…, 10.
Mostrar comentarios más antiguos
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 comentarios
KSSV
el 22 de Jun. de 2021
What is your attempt for home work?
DONHILL ADIMA
el 22 de Jun. de 2021
Respuestas (1)
Dhruv G
el 22 de Jun. de 2021
0 votos
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.
Categorías
Más información sobre Environment and Settings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!