If there is a coding "sqrt(sum(data(:,1:end).^2,2))" , so what is the function number 2 after comma?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Simson Hutagalung
am 4 Aug. 2022
Kommentiert: Les Beckham
am 4 Aug. 2022
![](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 Kommentare
Bruno Luong
am 4 Aug. 2022
sum along the 2nd dimension
You can also take a look at the reference document
Akzeptierte Antwort
Les Beckham
am 4 Aug. 2022
That tells the sum() function to sum along the rows.
See the documentation for sum here
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!