If there is a coding "sqrt(sum(data(:,1:end).^2,2))" , so what is the function number 2 after comma?
2 次查看(过去 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 个评论
采纳的回答
Les Beckham
2022-8-4
That tells the sum() function to sum along the rows.
See the documentation for sum here
2 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!