sawtooth wave modulation i want mean voltage will be change with respect to frequency

1 回表示 (過去 30 日間)
nune pratyusha
nune pratyusha 2021 年 3 月 10 日
回答済み: Pavan Guntha 2021 年 3 月 24 日
t=0:1e-5:0.1;
f=10
v=sawtooth(2*pi*f*t);
v=0.3*(v+1);
k=mean(v)
my output is coming like k=0.299
i want to change mean voltage with respect to frequency

回答 (1 件)

Pavan Guntha
Pavan Guntha 2021 年 3 月 24 日
"i want to change mean voltage with respect to frequency" - Could you clearly elaborate on what should be the dependance of frequency in mean voltage calculation.
As per the above code, the mean value k changes if the frequency f is changed. Other workaround might be to incorporate the frequency parameter in calculating v as illustrated below:
v = func(f)*0.3*(v+1)
where func(f) represents the dependance of frequency in calculating the voltage.
If this isn't the issue you were facing, could you mention the exact problem you want to resolve.

カテゴリ

Help Center および File ExchangeSensors and Transducers についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by