フィルターのクリア

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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by