Find duty cycle of DC-DC buck-boost converter in Matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
I need to calulate the duty cycle for buck-boost converter in matrix, I have code as following
vin = randi ([10 100], 1, 100000);
vout = randi ([100 1000], 1,100000)
D= vout/(vout-vin);
when I run the code it just give me one value so I need to know how get the whole value of matrix
when I do the following, D= vout/(vout-vin).
I got error says " Invalid use of operator"
댓글 수: 0
답변 (1개)
Joel Van Sickel
2022년 9월 19일
You should use "./" instead of "/", this changes it to a vector operation instead of a matrix operation.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!