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!