Voltage dips on matlab

조회 수: 3 (최근 30일)
azerty and qwerty
azerty and qwerty 2022년 5월 23일
댓글: Walter Roberson 2022년 5월 25일
Hello guys,
I want to have a voltage dips simulation on matlab (code and simulink if possible), so a voltage dip is the diminution of the supply voltage in a specific time, that means I want to have an amplitude signal of 220 V, then in a given period goes down to 70% of 220 V which means 154 V, then goes up again... etc
Thank you for your answer.
  댓글 수: 1
Jon
Jon 2022년 5월 23일
So you just want a square wave with a fixed period that switches between 220V and 154V?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2022년 5월 24일
square() is -1 to +1. you multiply by 0.7 and add 0.3 so you get a range of -0.4 to +1. You multiply your signal by that, but the parts that are negative reflect your signal with a sharp kink.
If you multiplied by 0.3 and added 0.7 then the range would be 0.4 to +1
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 5월 24일
Don't use square(). Use
1 - 0.3*(START1<=t&t<=STOP1 | START2<=t&t<=STOP2)
and so on.
But it depends what should happen if you have two overlapping pulses. The above code would merge the ranges, only one dip. There are other very reasonable situations in which you would want to either sum the drops (30%+30% => 0.4) or multiply (.7*.7 => 0.49)
Walter Roberson
Walter Roberson 2022년 5월 25일
The square() function goes negative. You need to adjust the range
0.85 + square(Frequency)*0.15

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by