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

조회 수: 2 (최근 30일)
DONHILL ADIMA
DONHILL ADIMA 2021년 6월 22일
답변: Dhruv G 2021년 6월 22일
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
DONHILL ADIMA
DONHILL ADIMA 2021년 6월 22일
I have no attempt now, but i have previous work

댓글을 달려면 로그인하십시오.

답변 (1개)

Dhruv G
Dhruv G 2021년 6월 22일
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.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by