필터 지우기
필터 지우기

howwould you in put this in to math lab with functions

조회 수: 1 (최근 30일)
adriana resendez
adriana resendez 2015년 2월 9일
답변: Star Strider 2015년 2월 9일
add all elements of vector x=[37294]

채택된 답변

Star Strider
Star Strider 2015년 2월 9일
Assuming you intended to put spaces or commas between the numbers, use the sum function:
x=[3,7,2,9,4];
sum_x = sum(x)
produces:
sum_x =
25

추가 답변 (1개)

Sean de Wolski
Sean de Wolski 2015년 2월 9일

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by