I want to simulate an RL circuit with an input from a voltage source block on simscape.

6 ビュー (過去 30 日間)
Ryan Bredl
Ryan Bredl 2021 年 10 月 19 日
回答済み: Pratyush Roy 2021 年 11 月 1 日
I have a voltage waveform as an input to a matlab function on simscape. I want to simulate a series RL circuit, and have current as the output. I know how to do this on paper:
V = sin(wt)
Z = sqrt[(R^2)+(jwL^2)]
theta = atan(jwl/R)
I = V/Z sin(wt+theta)
The issue that I am having is that I have an actual voltage source block as input to my matlab code.
inputs to matlab code:
voltage source block
Z
theta
desired output:
I(current with phase shift)

回答 (1 件)

Pratyush Roy
Pratyush Roy 2021 年 11 月 1 日
Hi,
Please refer to the attached file for reference.
Hope this helps!

カテゴリ

Help Center および File ExchangeElectrical Sensors についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by