Find a mean square root velocity of each row in matrix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ali Kareem
am 23 Okt. 2015
Kommentiert: Star Strider
am 23 Okt. 2015
I have A 100 by 20 matrix and I want to find a mean square root velocity of each row and divided by a constant C then return the result as a 100 by 1.
Can you help me?
Thank you
0 Kommentare
Akzeptierte Antwort
Star Strider
am 23 Okt. 2015
The rms function is in the Signal Processing Toolbox. This uses built-in MATLAB funcitons:
V = randi(99, 100, 20); % Create Data
C = 100; % Define Constant ‘C’
VrmsC = sqrt(mean(V.^2,2))/C; % RMS Velocity/C
2 Kommentare
Weitere Antworten (1)
dpb
am 23 Okt. 2015
v=rms(x,2)/C; % presuming one C; if per row, the define the column vector and use "./C"
doc rms % for details
Siehe auch
Kategorien
Mehr zu Operating on Diagonal Matrices 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!