Plotting RMS from .csv files

5 次查看(过去 30 天)
Win
Win 2014-2-18
评论: Win 2014-2-18
I have data in the csv format that I'm plotting it using the lines of code below. The data has 2 columns and 1048576 rows. I have uploaded part of it below- the actual files being too large. Can you please tell me how to plot the RMS of the data?
if true clear all Array=csvread('Pencilbreak-63dB.csv'); col1 = Array(:, 1); col2 = Array(:, 2); plot(col1, col2) end

采纳的回答

Dishant Arora
Dishant Arora 2014-2-18
RMS = (sum(col2.^2)/length(col2))^0.5;
  9 个评论
Dishant Arora
Dishant Arora 2014-2-18
window size may vary asper the need
Win
Win 2014-2-18
ok, thanks a lot.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by