If there is a coding "sqrt(sum(data(:,1:end).^2,2))" , so what is the function number 2 after comma?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Simson Hutagalung
le 4 Août 2022
Commenté : Les Beckham
le 4 Août 2022
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 commentaires
Bruno Luong
le 4 Août 2022
sum along the 2nd dimension
You can also take a look at the reference document
Réponse acceptée
Les Beckham
le 4 Août 2022
That tells the sum() function to sum along the rows.
See the documentation for sum here
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!