how to calculate RMS of excel sheet having multiple channel

8 ビュー (過去 30 日間)
Pralhad Uttam
Pralhad Uttam 2021 年 12 月 22 日
コメント済み: Mathieu NOE 2021 年 12 月 22 日
I want to calculate RMS of sheet having nine channel
Example
Time Floor Vibration X Floor Vibration Y Floor Vibration Z

採用された回答

Mathieu NOE
Mathieu NOE 2021 年 12 月 22 日
編集済み: Mathieu NOE 2021 年 12 月 22 日
hello
see demo code below with attached excel file
I assumed the data are column oriented
the rms values are stored in array : col_rms
clc
clearvars
T = readmatrix('data_demo.xlsx');
time = T(:,1);
data = T(:,2:end);
col_rms = my_col_rms(data);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function col_rms = my_col_rms(data)
[m,n] = size(data);
for ci = 1:n
col_rms(1,ci) = sqrt(mean(data(:,ci).^2));
end
end
  2 件のコメント
Pralhad Uttam
Pralhad Uttam 2021 年 12 月 22 日
Thank You Sir
Mathieu NOE
Mathieu NOE 2021 年 12 月 22 日
My pleasure !
would yu accept my answer ?
tx

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePredictive Maintenance Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by