If there is a coding "sqrt(sum(​data(:,1:e​nd).^2,2))​" , so what is the function number 2 after comma?

3 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Les Beckham
Les Beckham am 4 Aug. 2022
That tells the sum() function to sum along the rows.
See the documentation for sum here

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by