If there is a coding "sqrt(sum(data(:,1:end).^2,2))" , so what is the function number 2 after comma?
1 回表示 (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1088340/image.png)
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
2022 年 8 月 4 日
sum along the 2nd dimension
You can also take a look at the reference document
採用された回答
Les Beckham
2022 年 8 月 4 日
That tells the sum() function to sum along the rows.
See the documentation for sum here
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!