finding rms of fundamental and thd using csv file
Show older comments
sampling 50us voltage frequency 60hz the file is the measurements for the input voltage. I used plot to see the graph, but I'm not sure how to find the rms of the fundamental of the input voltage and also the thd.
I'd really appreciate some help.
Accepted Answer
More Answers (1)
Ameer Hamza
on 15 Oct 2020
You can calculate the rms value of voltage using following lines of code
x = readmatrix('data_kcube.csv');
t = x(:,1);
V = x(:,2);
V_rms = sqrt(mean(V.^2));
Categories
Find more on Spectral Measurements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!