1周期のみのAC電源はあるか

5 views (last 30 days)
MISUMI MATSUMOTO
MISUMI MATSUMOTO on 6 May 2021
1周期のみのAC Voltage sourceが必要なのですがありますか。
また作れる場合、どのように作れるか知りたいです。

Accepted Answer

Toshinobu Shintai
Toshinobu Shintai on 6 May 2021
制御電圧源(Controlled Voltage Source)を用いて、1周期のみのSimulink信号を作成し、入力すれば作ることができます。
例えば、以下のような関数をMATLAB Functionブロックに記述します。
function v = fcn(clock, period)
if (clock <= period)
v = sin(clock/period*2*pi);
else
v = 0;
end
end
以下のようにモデルを構成して実行すると、
電圧は以下のようになっています。
モデルはR2021aで作成しています。添付していますので、ご確認ください。
  1 Comment
MISUMI MATSUMOTO
MISUMI MATSUMOTO on 6 May 2021
分かりやすい回答ありがとうございます。

Sign in to comment.

More Answers (1)

Hernia Baby
Hernia Baby on 6 May 2021
Edited: Hernia Baby on 6 May 2021
コードで作る場合はサンプリング周波数を決めて式に沿って作成すればできると思います。
以下サンプリング周波数10000Hzとして
振幅1、位相ずれなしのものです。
周波数は100Hzつまり1周期0.01secです。
close all,clear,clc;
Vm = 1;
theta = 0;
f = 100;
Fs = 10000;
t = 0:1/Fs:1/f;
V = Vm*sin(2*pi*f*t+theta);
figure
plot(t,V)

Categories

Find more on Simscape Electrical 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!