If there is a coding "sqrt(sum(data(:,1:end).^2,2))" , so what is the function number 2 after comma?
조회 수: 3 (최근 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
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에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!