Definit integral within a larger equation for a root mean square calculation

4 ビュー (過去 30 日間)
kcl128
kcl128 2018 年 4 月 4 日
回答済み: kcl128 2018 年 4 月 5 日
I am struggling to apply the correct code to evaluate an equation with an integral included. File attached. Any pointers gratefully received.
  4 件のコメント
kcl128
kcl128 2018 年 4 月 4 日
The formula that I pasted in to the question is misleading, for which I apologise. I copied it directly from Mathcad but V3rms is expressed as a function of t (V3rms(t)) only so that I could plot V3rms against time. So the formula is corrct but it should just read (V3rms = etc.
Sorry.
Torsten
Torsten 2018 年 4 月 5 日
編集済み: Torsten 2018 年 4 月 5 日
And how is Y(t) given ? As an explicit function ? As a list of pairs (t_i,Y(t_i)) ?

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

採用された回答

Torsten
Torsten 2018 年 4 月 5 日
編集済み: Torsten 2018 年 4 月 5 日
t0 = 0;
t1 = 0.01;
f = 1.0/0.02;
Vrms = sqrt(1/(t1-t0)*integral(@(t)sin(2*pi*t*f).^2,t0,t1))
Best wishes
Torsten.

その他の回答 (2 件)

kcl128
kcl128 2018 年 4 月 5 日
Good morning Torsten, Y is the sum of two sinusoidal voltages sampled over a period of 10 milliseconds (t2 = 10ms and t1 = 0ms). One sinusoidal voltage is at the fundamental frequency of 50 hz and the other at the third harmonic of 150 hz. Attached is an extract from a Mathcad calculation.
Kind Regards

kcl128
kcl128 2018 年 4 月 5 日
Dear Torsten,
Thank you. I now understand the problem.
Kind Regards

カテゴリ

Help Center および File ExchangeSpectral Measurements についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by