フィルターのクリア

If there is a coding "sqrt(sum(​data(:,1:e​nd).^2,2))​" , so what is the function number 2 after comma?

2 ビュー (過去 30 日間)
Hello everyone, i wanna ask, what is the function of number 2 after comma in coding "sqrt(sum(data(:,1:end).^2,2))"?
Thank you.
  2 件のコメント
Bruno Luong
Bruno Luong 2022 年 8 月 4 日
sum along the 2nd dimension
You can also take a look at the reference document
Simson Hutagalung
Simson Hutagalung 2022 年 8 月 4 日
Thank you very much, sir.

サインインしてコメントする。

採用された回答

Les Beckham
Les Beckham 2022 年 8 月 4 日
That tells the sum() function to sum along the rows.
See the documentation for sum here
  2 件のコメント
Simson Hutagalung
Simson Hutagalung 2022 年 8 月 4 日
Thank you very much, sir.
Les Beckham
Les Beckham 2022 年 8 月 4 日
You are welcome. Please accept the answer if it helped you. Thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by